ModIconButton constructor
const
ModIconButton({
- Key? key,
- required IconData icon,
- required Future<
void> onPressed(), - IconData loadingIcon = Icons.autorenew,
- double? iconSize,
- VisualDensity? visualDensity,
- EdgeInsetsGeometry? padding,
- AlignmentGeometry? alignment,
- double? splashRadius,
- Color? color,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- Color? disabledColor,
- MouseCursor? mouseCursor,
- FocusNode? focusNode,
- bool autofocus = false,
- String? tooltip,
- bool? enableFeedback,
- BoxConstraints? constraints,
- ButtonStyle? style,
- bool? isSelected,
- 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,
});