YaruIconButton constructor

const YaruIconButton({
  1. required Widget icon,
  2. AlignmentGeometry alignment = Alignment.center,
  3. bool autofocus = false,
  4. BoxConstraints? constraints,
  5. bool enableFeedback = true,
  6. FocusNode? focusNode,
  7. double iconSize = kYaruIconSize,
  8. bool? isSelected,
  9. MouseCursor? mouseCursor,
  10. VoidCallback? onPressed,
  11. EdgeInsetsGeometry? padding,
  12. Widget? selectedIcon,
  13. double? splashRadius,
  14. ButtonStyle? style,
  15. String? tooltip,
  16. VisualDensity? visualDensity,
  17. Key? key,
})

Implementation

const YaruIconButton({
  required this.icon,
  this.alignment = Alignment.center,
  this.autofocus = false,
  this.constraints,
  this.enableFeedback = true,
  this.focusNode,
  this.iconSize = kYaruIconSize,
  this.isSelected,
  this.mouseCursor,
  this.onPressed,
  this.padding,
  this.selectedIcon,
  this.splashRadius,
  this.style,
  this.tooltip,
  this.visualDensity,
  super.key,
});