Animation constructor
const
Animation({
- required List<
Keyframe> keyframes, - Duration duration = Duration.zero,
- Duration startDelay = Duration.zero,
- Duration endDelay = Duration.zero,
- Easing easing = Easing.linear,
- AnimationDirection direction = AnimationDirection.normal,
- AnimationFillMode fillMode = AnimationFillMode.none,
- double iterations = 1,
Creates a new Animation instance.
Implementation
const Animation({
required this.keyframes,
this.duration = Duration.zero,
this.startDelay = Duration.zero,
this.endDelay = Duration.zero,
this.easing = Easing.linear,
this.direction = AnimationDirection.normal,
this.fillMode = AnimationFillMode.none,
this.iterations = 1,
});