ModIconButton constructor

const ModIconButton({
  1. Key? key,
  2. required IconData icon,
  3. required Future<void> onPressed(),
  4. IconData loadingIcon = Icons.autorenew,
  5. double? iconSize,
  6. VisualDensity? visualDensity,
  7. EdgeInsetsGeometry? padding,
  8. AlignmentGeometry? alignment,
  9. double? splashRadius,
  10. Color? color,
  11. Color? focusColor,
  12. Color? hoverColor,
  13. Color? highlightColor,
  14. Color? splashColor,
  15. Color? disabledColor,
  16. MouseCursor? mouseCursor,
  17. FocusNode? focusNode,
  18. bool autofocus = false,
  19. String? tooltip,
  20. bool? enableFeedback,
  21. BoxConstraints? constraints,
  22. ButtonStyle? style,
  23. bool? isSelected,
  24. IconData? selectedIcon,
})

Implementation

const ModIconButton({
  super.key,
  required this.icon,
  required this.onPressed,
  this.loadingIcon = Icons.autorenew,
  this.iconSize,
  this.visualDensity,
  this.padding,
  this.alignment,
  this.splashRadius,
  this.color,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.splashColor,
  this.disabledColor,
  this.mouseCursor,
  this.focusNode,
  this.autofocus = false,
  this.tooltip,
  this.enableFeedback,
  this.constraints,
  this.style,
  this.isSelected,
  this.selectedIcon,
});