hadError property
True
if the underlying StreamSubscription emitted an error.
Once the StreamSubscription got cancelled, all references to it are removed from this StreamSubscriptionNotifier and no more events will be received.
Implementation
@override
bool get hadError => onError.isNotEmpty;