AnimateAction class final

Drives an animation (Flutter's AnimationController methods): node node's animation (NodeAnimation), or the number variable variable (an unbounded controller the screen keeps for it). JSON: {"type": "animate", "node": "card", "animation": "pop", "command": "forward", "from": "0"}, {"type": "animate", "variable": "shownTotal", "command": "animateTo", "target": "${total}", "duration": "800", "curve": "easeOutCubic"}. The chain waits for it to end (TickerFuture) unless it's nonBlocking; a repeat ends when its count does.

Inheritance

Constructors

AnimateAction({String node = '', String animation = '', String variable = '', AnimateCommand command = AnimateCommand.forward, String from = '', String target = '', String duration = '', AnimationCurve? curve, Spring? spring, bool enabled = true, bool nonBlocking = false, Predicate? when})
const

Properties

animation → String
The animation's id on node. A node's particles burst plays by its reserved name too.
final
command → AnimateCommand
final
curve → AnimationCurve?
Null: the animation's (linear for a variable).
final
duration → String
An expression giving milliseconds; empty: the animation's.
final
enabled → bool
False skips the action.
finalinherited
fieldsJson → Json
Its own fields, as JSON (sparse): what toJson writes besides type and the common fields. An action class outside this library overrides this.
no setterinherited
from → String
Expressions: where AnimateCommand.forward / AnimateCommand.reverse start (0–1; on a variable, its start value), and the target of AnimateCommand.animateTo, AnimateCommand.animateBack and AnimateCommand.set.
final
hashCode → int
The hash code for this object.
no setterinherited
nested → List<ActionDef>
The actions it runs itself (branches, follow-ups), in order.
no setterinherited
node → String
Whose animation: a node id or key; empty: the reacting node.
final
nonBlocking → bool
The chain doesn't wait for it, and its failure doesn't stop the chain.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selfAndNested → Iterable<ActionDef>
This action, then every action nested in it, depth first.
no setterinherited
spring → Spring?
animateWith(SpringSimulation) toward target instead of a duration.
final
target → String
Expressions: where AnimateCommand.forward / AnimateCommand.reverse start (0–1; on a variable, its start value), and the target of AnimateCommand.animateTo, AnimateCommand.animateBack and AnimateCommand.set.
final
type → String
The JSON type.
no setteroverride
variable → String
Instead of node and animation: a number variable.
final
when → Predicate?
Runs only when it holds; null: always.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

typeName → const String