W3cubDocs

/Dart 2

onDone method

void onDone (void handleDone())

Replaces the done event handler of this subscription.

The handleDone function is called when the stream closes. The value may be null, in which case no function is called.

This method replaces the current handler set by the invocation of Stream.listen, by calling asFuture, or by a previous call to onDone.

Implementation

void onDone(void handleDone());

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-async/StreamSubscription/onDone.html