AnimatableParameter<T> class abstract Animation

A wrapper around an animatable parameter of a widget that supports animating with Fleet.

value itself is not animated, can be changed at any time and immediately reflects the new value.

animatedValue is animated and changes over time to the new value.

At any given point in time there is exaclty one or none AnimationSpecs available from the mechanism that Fleet uses to bind AnimationSpecs to state changes.

When a new value is set, the currently available AnimationSpec is used to animate the change.

Implemented types
Mixed-in types
Implementers

Constructors

AnimatableParameter(T value, {required AnimatableParameterHost host})
Creates a wrapper around an animatable parameter of a widget that supports animating with Fleet.

Properties

animatedValue → T
The value of this AnimatableValue that is currently used when rendering the UI.
no setter
animationStatus AnimationStatus?
The current animation status of this parameter, if it is animating.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
The current value of this AnimatableValue.
getter/setter pair

Methods

createTicker(TickerCallback onTick) Ticker
Creates a ticker with the given callback.
override
createTween() Tween<T?>
Returns a Tween that the AnimationImpl can use to interpolate between value and animatedValue.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
dispose() → void
Disposes this parameter and stops any running animation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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