IconButton constructor

const IconButton({
  1. Key? key,
  2. required Widget icon,
  3. double? iconSize,
  4. EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
  5. AlignmentGeometry alignment = Alignment.center,
  6. Color? color,
  7. Color? splashColor,
  8. Color? highlightColor,
  9. Color? hoverColor,
  10. Color? focusColor,
  11. Color? disabledColor,
  12. String? tooltip,
  13. VoidCallback? onPressed,
  14. FocusNode? focusNode,
  15. bool autofocus = false,
  16. String? tooltipMessage,
  17. MouseCursor? mouseCursor,
  18. VisualDensity? visualDensity,
  19. bool enableFeedback = true,
  20. BoxConstraints? constraints,
})

Implementation

const IconButton({
  super.key,
  required this.icon,
  this.iconSize,
  this.padding = const EdgeInsets.all(8.0),
  this.alignment = Alignment.center,
  this.color,
  this.splashColor,
  this.highlightColor,
  this.hoverColor,
  this.focusColor,
  this.disabledColor,
  this.tooltip,
  this.onPressed,
  this.focusNode,
  this.autofocus = false,
  this.tooltipMessage,
  this.mouseCursor,
  this.visualDensity,
  this.enableFeedback = true,
  this.constraints,
});