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