cancel abstract method

Future<void> cancel()

Cancels the stream iterator (and the underlying stream subscription) early.

Users should call cancel to ensure that the stream is properly closed if they need to stop listening earlier than the end of the stream.

Implementation

Future<void> cancel();