Animation constructor

const Animation(
  1. AnimationType type, {
  2. required double duration,
})

Implementation

const Animation(
  this.type, {
  required this.duration,
});