Tweenable class

Creates an Tweenable value which can be animated with helper functions like withTiming, withSpring, withSequence ...

You need TickerProvider in order to initialize Tweenable just like in AnimationController.

Example

....
Tweenable x = Tweenable(0.0, vsync: this)
...
x = withTiming(...)
x.value = withSpring(...)
x.value = withSequence(...)
x.value = 45.0 // no animations done here

When the value of x is set to a double (45.0), it stops all the animations and set the position of the Tweenable to the provided value

Constructors

Tweenable(double _val, {required TickerProvider vsync})

Properties

hashCode int
The hash code for this object.
no setterinherited
notifier ValueNotifier<double>
the ValueNotifier of the animation value
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status AnimationStatus?
returns the current Animation Status
getter/setter pairinherited-setter
value double
get the current animated Value
getter/setter pair
vsync TickerProvider
finalinherited

Methods

addEventListener(void callback(double value)) → dynamic
call(dynamic _value) → dynamic
inherited
dispose() → dynamic
interpolate<T>(List<double> inputRange, List<T> outputRange, [Extrapolate extrapolate = Extrapolate.EXTEND, Extrapolate? right]) → T
Maps an input value within a range to an output value within a range.
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 *(dynamic other) double
inherited
operator +(dynamic other) double
inherited
operator -(dynamic other) double
inherited
operator /(dynamic other) double
inherited
operator ==(Object other) bool
The equality operator.
inherited