IconButton.filled constructor

const IconButton.filled({
  1. Key? key,
  2. double? iconSize,
  3. VisualDensity? visualDensity,
  4. EdgeInsetsGeometry? padding,
  5. AlignmentGeometry? alignment,
  6. double? splashRadius,
  7. Color? color,
  8. Color? focusColor,
  9. Color? hoverColor,
  10. Color? highlightColor,
  11. Color? splashColor,
  12. Color? disabledColor,
  13. required VoidCallback? onPressed,
  14. ValueChanged<bool>? onHover,
  15. VoidCallback? onLongPress,
  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. Widget? selectedIcon,
  25. required Widget icon,
})

Create a filled variant of IconButton.

Filled icon buttons have higher visual impact and should be used for high emphasis actions, such as turning off a microphone or camera.

Implementation

const IconButton.filled({
  super.key,
  this.iconSize,
  this.visualDensity,
  this.padding,
  this.alignment,
  this.splashRadius,
  this.color,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.splashColor,
  this.disabledColor,
  required this.onPressed,
  this.onHover,
  this.onLongPress,
  this.mouseCursor,
  this.focusNode,
  this.autofocus = false,
  this.tooltip,
  this.enableFeedback,
  this.constraints,
  this.style,
  this.isSelected,
  this.selectedIcon,
  required this.icon,
}) : assert(splashRadius == null || splashRadius > 0),
     _variant = _IconButtonVariant.filled;