EffectAnimation constructor
const
EffectAnimation({
- Key? key,
- required Widget child,
- Color effectColor = const Color(0xFF8BB3C5),
- Duration duration = const Duration(milliseconds: 2400),
- bool repeatWhenDrag = true,
- bool autoAnimate = false,
- AnimationType animationType = AnimationType.firework,
- double? radiusMultiplier,
- AnimationPosition position = AnimationPosition.outside,
- Offset? customOffset,
- EffectAnimationController? controller,
- 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);