Animation class

The animation CSS property applies an animation between styles.

CSS animations make it possible to animate transitions from one CSS style configuration to another. Animations consist of two components: a style describing the CSS Animation and a set of StyleRule.keyframes that indicate the start and end states of the animation's style, as well as possible intermediate waypoints.

Read more: MDN Using CSS animations

Constructors

Animation({required String name, required Duration duration, Curve? curve, Duration? delay, double? count, AnimationDirection? direction, AnimationFillMode? fillMode, AnimationPlayState? playState})
Creates an animation with the given name, duration, and optional properties.
const
factory
Animation.list(List<Animation> animations)
Combines multiple animations into a single property.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The css value
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

Constants

none → const Animation
No animation.