sub property

Get a StreamSubscription with an empty StreamSubscription.onData] handler of this Stream.

Implementation

StreamSubscription<T> get sub => listen(
      (_) {},
      cancelOnError: false,
    );