ProxyNotifier<Result, Input> class
Selects a value from an existing ValueListenable and notifies when that value changes.
- Implemented types
-
- ValueListenable<
Result>
- ValueListenable<
- Mixed-in types
Constructors
-
ProxyNotifier(ValueListenable<
Input> input, Result getValue(Input value)) - Transforms any Listenable into a ValueListenable.
Properties
- getValue → Result Function(Input value)
-
Retrieves a value using the provided input.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
input
→ ValueListenable<
Input> -
The input Listenable object.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → Result
-
The current value of the object.
no setteroverride
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
override
-
dispose(
) → void -
Discards any resources used by the object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
proxyWith(
ValueListenable< Input> newInput) → ProxyNotifier<Result, Input> - Returns a copy of this notifier that uses a different input object of the same type.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited