ValueNotifierAdapter class

Drives an Animate animation from a ValueNotifier. The value from the notifier should be in the range 0-1. Supply transformer to map other input ranges to animation progress.

See Adapter for information on direction and animated.

Inheritance
Implementers

Constructors

ValueNotifierAdapter(ValueNotifier<double> notifier, {double transformer(double value)?, bool? animated, Direction? direction})

Properties

animated bool
finalinherited
direction Direction?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
notifier ValueNotifier<double>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transformer double Function(double value)?
Maps the notifier value on attachment and on every update, before applying Adapter.direction or animation. Finite results are clamped to 0-1; non-finite results throw ArgumentError without changing progress. When omitted, notifier values are passed through as before.
final

Methods

attach(AnimationController controller) → void
override
config(AnimationController controller, double value, {ChangeNotifier? notifier, VoidCallback? listener}) → void
inherited
detach() → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateValue(double value) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited