IconButtonProps constructor

const IconButtonProps({
  1. required Widget icon,
  2. bool isVisible = false,
  3. double iconSize = 24.0,
  4. VisualDensity? visualDensity,
  5. EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
  6. AlignmentGeometry alignment = Alignment.center,
  7. double? splashRadius,
  8. Color? color,
  9. Color? focusColor,
  10. Color? hoverColor,
  11. Color? highlightColor,
  12. Color? splashColor,
  13. Color? disabledColor,
  14. MouseCursor mouseCursor = SystemMouseCursors.click,
  15. FocusNode? focusNode,
  16. bool autofocus = false,
  17. String? tooltip,
  18. bool enableFeedback = false,
  19. BoxConstraints? constraints,
  20. dynamic onPressed()?,
  21. ButtonStyle? style,
  22. bool? isSelected,
  23. 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);