ProviderSubscription<Listened> class
An object that allows watching the state of a provider.
This object is created by ProviderContainer.listen. It allows reading the current value, closing the subscription, or knowing if the value exposed changed since the last read.
- Annotations
-
- @sealed
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void - Stops listening to the provider.
-
flush(
) → bool - Compute the provider (if it needs to be recomputed) and returns whether a new value was created or not.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
) → Listened - Obtains the value currently exposed by the provider.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited