VillainAnimation constructor

VillainAnimation({
  1. required AnimatedWidgetBuilder animatedWidgetBuilder,
  2. required Animatable animatable,
  3. Duration from = Duration.zero,
  4. Duration to = _kMaterialRouteTransitionLength,
  5. Curve curve = Curves.linear,
})

form defaults to 0 and to defaults to the MaterialPageRoute transition duration which is 300 ms

Implementation

VillainAnimation({
  required this.animatedWidgetBuilder,
  required this.animatable,
  this.from = Duration.zero,
  this.to = _kMaterialRouteTransitionLength,
  this.curve = Curves.linear,
});