AnimationComponent constructor

const AnimationComponent({
  1. Key? key,
  2. required Widget child,
  3. required ComponentAnimationType animationType,
  4. AnimationController? controller,
  5. Duration duration = const Duration(milliseconds: 300),
  6. Duration delay = Duration.zero,
  7. Curve curve = Curves.easeInOut,
  8. bool autoStart = true,
  9. bool repeat = false,
  10. bool reverse = false,
  11. VoidCallback? onAnimationComplete,
  12. 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,
});