ModulaIconButton constructor

const ModulaIconButton({
  1. required IconData icon,
  2. Key? key,
  3. VoidCallback? onPressed,
  4. double size = 24.0,
  5. Color? iconColor,
  6. Color? backgroundColor,
  7. Color? splashColor,
  8. double borderRadius = 8.0,
  9. EdgeInsets padding = const EdgeInsets.all(8),
  10. bool isEnabled = true,
  11. Duration animationDuration = const Duration(milliseconds: 200),
  12. double elevation = 0.0,
})

Implementation

const ModulaIconButton({
  required this.icon,
  super.key,
  this.onPressed,
  this.size = 24.0,
  this.iconColor,
  this.backgroundColor,
  this.splashColor,
  this.borderRadius = 8.0,
  this.padding = const EdgeInsets.all(8),
  this.isEnabled = true,
  this.animationDuration = const Duration(milliseconds: 200),
  this.elevation = 0.0,
});