CustomIconButtonBase constructor

const CustomIconButtonBase({
  1. required dynamic onPressed()?,
  2. required Widget icon,
  3. Key? key,
  4. double? iconSize,
  5. VisualDensity? visualDensity,
  6. EdgeInsetsGeometry? padding,
  7. AlignmentGeometry? alignment,
  8. double? splashRadius,
  9. Color? color,
  10. Color? focusColor,
  11. Color? hoverColor,
  12. Color? highlightColor,
  13. Color? splashColor,
  14. Color? disabledColor,
  15. MouseCursor? mouseCursor,
  16. FocusNode? focusNode,
  17. bool autofocus = false,
  18. String? tooltip,
  19. bool? enableFeedback,
  20. BoxConstraints? constraints,
  21. ButtonStyle? style,
  22. bool? isSelected,
  23. Widget? selectedIcon,
  24. CustomIconButtonType? type,
})

IconButton 基类

Implementation

const CustomIconButtonBase({
  required this.onPressed,
  required this.icon,
  super.key,
  this.iconSize,
  this.visualDensity,
  this.padding,
  this.alignment,
  this.splashRadius,
  this.color,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.splashColor,
  this.disabledColor,
  this.mouseCursor,
  this.focusNode,
  this.autofocus = false,
  this.tooltip,
  this.enableFeedback,
  this.constraints,
  this.style,
  this.isSelected,
  this.selectedIcon,
  this.type,
});