W3cubDocs

/Dart 2

close method

Future close ()

Tells the consumer that no further streams will be added.

This allows the consumer to complete any remaining work and release resources that are no longer needed

Returns a future which is completed when the consumer has shut down. If cleaning up can fail, the error may be reported in the returned future, otherwise it completes with null.

Implementation

Future close();

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-async/StreamConsumer/close.html