AnimationComponent constructor
const
AnimationComponent({
- Key? key,
- required Widget child,
- required ComponentAnimationType animationType,
- AnimationController? controller,
- Duration duration = const Duration(milliseconds: 300),
- Duration delay = Duration.zero,
- Curve curve = Curves.easeInOut,
- bool autoStart = true,
- bool repeat = false,
- bool reverse = false,
- VoidCallback? onAnimationComplete,
- VoidCallback? onAnimationStart,
Implementation
const AnimationComponent({
super.key,
required this.child,
required this.animationType,
this.controller,
this.duration = const Duration(milliseconds: 300),
this.delay = Duration.zero,
this.curve = Curves.easeInOut,
this.autoStart = true,
this.repeat = false,
this.reverse = false,
this.onAnimationComplete,
this.onAnimationStart,
});