IconButtonProps constructor
const
IconButtonProps({
- required Widget icon,
- bool isVisible = false,
- double iconSize = 24.0,
- VisualDensity? visualDensity,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
- AlignmentGeometry alignment = Alignment.center,
- double? splashRadius,
- Color? color,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- Color? disabledColor,
- MouseCursor mouseCursor = SystemMouseCursors.click,
- FocusNode? focusNode,
- bool autofocus = false,
- String? tooltip,
- bool enableFeedback = false,
- BoxConstraints? constraints,
- dynamic onPressed()?,
- ButtonStyle? style,
- bool? isSelected,
- Widget? selectedIcon,
Implementation
const IconButtonProps({
required this.icon,
this.isVisible = false,
this.iconSize = 24.0,
this.visualDensity,
this.padding = const EdgeInsets.all(8.0),
this.alignment = Alignment.center,
this.splashRadius,
this.color,
this.focusColor,
this.hoverColor,
this.highlightColor,
this.splashColor,
this.disabledColor,
this.mouseCursor = SystemMouseCursors.click,
this.focusNode,
this.autofocus = false,
this.tooltip,
this.enableFeedback = false,
this.constraints,
this.onPressed,
this.style,
this.isSelected,
this.selectedIcon,
}) : assert(splashRadius == null || splashRadius > 0);