AppBarActionButton constructor

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

Implementation

const AppBarActionButton({
  Key? key,
  required this.icon,
  required this.onPressed,
  this.tooltip,
  this.onLongPress,
  // ===
  this.iconSize /* 24 */,
  this.visualDensity,
  this.padding /* const EdgeInsets.all(8.0) */,
  this.alignment /* Alignment.center */,
  this.splashRadius,
  this.focusColor,
  this.hoverColor,
  this.color,
  this.splashColor,
  this.highlightColor,
  this.disabledColor,
  this.mouseCursor,
  this.focusNode,
  this.autofocus /* false */,
  this.enableFeedback /* true */,
  this.constraints,
})  : assert(splashRadius == null || splashRadius > 0),
      super(key: key);