close abstract method
Closes this stream, causing all close handlers for this stream pipeline to be called.
Example
final stream = DartStream.of([1, 2, 3, 4, 5])
.onClose(() => print('Stream closed'));
stream.close(); // Prints "Stream closed"
Implementation
@override
void close();