EffectAnimation constructor

const EffectAnimation({
  1. Key? key,
  2. required Widget child,
  3. Color effectColor = const Color(0xFF8BB3C5),
  4. Duration duration = const Duration(milliseconds: 2400),
  5. bool repeatWhenDrag = true,
  6. bool autoAnimate = false,
  7. AnimationType animationType = AnimationType.firework,
  8. double? radiusMultiplier,
  9. AnimationPosition position = AnimationPosition.outside,
  10. Offset? customOffset,
  11. EffectAnimationController? controller,
  12. bool touchEnabled = true,
})

Implementation

const EffectAnimation({
  Key? key,
  required this.child,
  this.effectColor = const Color(0xFF8BB3C5),
  this.duration = const Duration(milliseconds: 2400),
  this.repeatWhenDrag = true,
  this.autoAnimate = false,
  this.animationType = AnimationType.firework,
  this.radiusMultiplier,
  this.position = AnimationPosition.outside,
  this.customOffset,
  this.controller,
  this.touchEnabled = true, // Default-nya aktif
}) : super(key: key);