FieldSubscription<T> class
- Inheritance
-
- Object
- ControlSubscription<
T> - FieldSubscription
- Implemented types
- Available extensions
Constructors
-
FieldSubscription.new(StreamSubscription<
T?> _sub)
Properties
- cancelOnError ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isActive → bool
-
Checks is this subscription can serve.
no setteroverride
- isCallbackAttached → bool
-
Checks if callback to serve is available.
no setterinherited
- isPaused → bool
-
Whether the StreamSubscription is currently paused.
no setteroverride
- isValid → bool
-
Checks if observable is set.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asFuture<
E> ([E? futureValue]) → Future< E> -
Returns a future that handles the onDone and onError callbacks.
override
-
cancel(
) → Future -
override
-
dispose(
) → void -
Used to clear and dispose object.
Unsubscribe and close all sources. Prepare object for GC.
Can be called multiple times!
override
-
disposeWith(
DisposeObserver observer) → void -
Available on Disposable, provided by the DisposableExt extension
Register for dispose with givenobserver
. -
filter(
Predicate< T> ? filter) → ControlSubscription<T> -
Sets test to
filter
observable values.inherited -
initSubscription(
ObservableValue parent, [ValueCallback< T> ? callback]) → void -
Activate this subscription.
Given
callback
will serve changes via observable.inherited -
invalidate(
) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyCallback(
T value) → void -
Notify sub with given
value
. Check filter and until to modify callback. When sub is ready to invalidate, then parent observer will remove sub from its listeners.inherited -
once(
) → ControlSubscription< T> -
Serve just one change. After this subscription cancels.
inherited
-
onData(
void handleData(T? data)?) → void -
Replaces the data event handler of this subscription.
override
-
onDone(
void handleDone()?) → void -
Replaces the done event handler of this subscription.
override
-
onError(
Function? handleError) → void -
Replaces the error event handler of this subscription.
override
-
pause(
[Future? resumeSignal]) → void -
override
-
resume(
) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
until(
Predicate< T> ? predicate) → ControlSubscription<T> -
Sets test to
predicate
when to cancel this subscription.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited