AnimationPreset class final

A named short form of a NodeAnimation: its default timing, and the tracks it stands for as a function of its params.

Annotations
  • @immutable

Constructors

AnimationPreset({required String name, required Json defaults, required List<AnimationTrack> tracks(Json params), int? duration, AnimationCurve? curve, AnimationRepeat? repeat, bool? autoplay, double? previewAt, int? durationOf(Json params)?})
const

Properties

autoplay → bool?
final
curve → AnimationCurve?
final
defaults → Json
The params it reads, with their defaults.
final
duration → int?
final
durationOf → int? Function(Json params)?
The duration for params (over defaults), when it depends on them (a spin's turns per second); null: duration.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
previewAt → double?
final
repeat → AnimationRepeat?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tracks → List<AnimationTrack> Function(Json params)
The tracks for params (over defaults).
final

Methods

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 ==(Object other) → bool
The equality operator.
inherited