VillainAnimation constructor
VillainAnimation({
- required AnimatedWidgetBuilder animatedWidgetBuilder,
- required Animatable animatable,
- Duration from = Duration.zero,
- Duration to = _kMaterialRouteTransitionLength,
- 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,
});