BurstIconButton constructor
const
BurstIconButton({
- Key? key,
- required Icon icon,
- Icon? pressedIcon,
- Icon? burstIcon,
- Duration duration = const Duration(milliseconds: 1200),
- Duration throttleDuration = const Duration(milliseconds: 100),
- required VoidCallback? onPressed,
- double? crossAmplitude,
- double? burstDistance,
- int? burstCount,
- Curve? burstCurve,
Creates a BurstIconButton.
The icon and onPressed parameters are required.
Implementation
const BurstIconButton({
super.key,
required this.icon,
this.pressedIcon,
this.burstIcon,
this.duration = const Duration(milliseconds: 1200),
this.throttleDuration = const Duration(milliseconds: 100),
required this.onPressed,
this.crossAmplitude,
this.burstDistance,
this.burstCount,
this.burstCurve,
});