ProviderSubscription<Listened> class Null safety

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

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent 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