NotifierSubscription<T> class
An StreamSubscription for an StreamNotifier which emits the following values only.
- Implemented types
Constructors
-
NotifierSubscription(StreamNotifier<
T> _self)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPaused → bool
-
Whether the StreamSubscription is currently paused.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
value
→ Maybe<
T> -
Returns Just the current value when present, otherwise returns None.
no setter
Methods
-
asFuture<
E> ([E? futureValue]) → Future< E> -
Returns a future that handles the onDone and onError callbacks.
inherited
-
cancel(
) → Future< void> -
Cancels this subscription.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onData(
void handleData(T)?) → void -
Replaces the data event handler of this subscription.
inherited
-
onDone(
void handleDone()?) → void -
Replaces the done event handler of this subscription.
inherited
-
onError(
Function? handleError) → void -
Replaces the error event handler of this subscription.
inherited
-
pause(
[Future< void> ? resumeSignal]) → void -
Requests that the stream pauses events until further notice.
inherited
-
resume(
{bool emitLastest = true}) → void -
Resumes after a pause.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited