Animation constructor

const Animation({
  1. required List<Keyframe> keyframes,
  2. Duration duration = Duration.zero,
  3. Duration startDelay = Duration.zero,
  4. Duration endDelay = Duration.zero,
  5. Easing easing = Easing.linear,
  6. AnimationDirection direction = AnimationDirection.normal,
  7. AnimationFillMode fillMode = AnimationFillMode.none,
  8. 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,
});