AnimationSpec constructor

const AnimationSpec({
  1. Curve curve = Curves.easeInOut,
  2. required Duration duration,
  3. required Tween tween,
})

Implementation

const AnimationSpec({
  this.curve = Curves.easeInOut,
  required this.duration,
  required this.tween,
});