close method

Future<void> close()

Ends the stream once the writes already issued have finished. Closing again does nothing more and completes with the first close.

Implementation

Future<void> close() => _closing ??= _close();