BurstIconButton constructor

const BurstIconButton({
  1. Key? key,
  2. required Icon icon,
  3. Icon? pressedIcon,
  4. Icon? burstIcon,
  5. Duration duration = const Duration(milliseconds: 1200),
  6. Duration throttleDuration = const Duration(milliseconds: 100),
  7. required VoidCallback? onPressed,
  8. double? crossAmplitude,
  9. double? burstDistance,
  10. int? burstCount,
  11. 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,
});