ProviderTransformer<InT, ValueT> class
The logic responsible for transforming a ProviderListenable into another ProviderListenable.
It is both:
- the object that hols the current state of the transformation
- a description of how to react to various life-cycles related to the listened object.
- Annotations
-
- @publicInMisc
Constructors
-
ProviderTransformer.new({required void listener(ProviderTransformer<
InT, ValueT> self, AsyncResult<InT> prev, AsyncResult<InT> next), required ValueT initState(ProviderTransformer<InT, ValueT> self), void onClose()?}) - The logic responsible for transforming a ProviderListenable into another ProviderListenable.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
listener
→ void Function(ProviderTransformer<
InT, ValueT> self, AsyncResult<InT> prev, AsyncResult<InT> next) -
A callback invoked when the source changes after the initial event.
final
- onClose → void Function()?
-
A life-cycle method for when ProviderSubscription is closed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
↔ AsyncResult<
ValueT> -
The currently exposed state of this transformer.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited