StreamSubscriptionNotifier<T>.stream constructor
StreamSubscriptionNotifier<T>.stream (})
Register a StreamSubscription on stream
and instantiate a
StreamSubscriptionNotifier from the registered StreamSubscription.
Implementation
factory StreamSubscriptionNotifier.stream(
Stream<T> stream, {
bool ignoreError = false,
bool cancelOnDispose = true,
bool cancelOnError = false,
bool cancelOnDone = false,
}) =>
StreamSubscriptionNotifier(
stream.sub,
ignoreError: ignoreError,
cancelOnDispose: cancelOnDispose,
cancelOnError: cancelOnError,
cancelOnDone: cancelOnDone,
);