FHeaderAction constructor

const FHeaderAction({
  1. required Widget icon,
  2. required VoidCallback? onPress,
  3. FHeaderActionStyle? style,
  4. String? semanticsLabel,
  5. bool selected = false,
  6. bool autofocus = false,
  7. FocusNode? focusNode,
  8. ValueChanged<bool>? onFocusChange,
  9. ValueChanged<bool>? onHoverChange,
  10. ValueChanged<FWidgetStatesDelta>? onStateChange,
  11. VoidCallback? onLongPress,
  12. VoidCallback? onSecondaryPress,
  13. VoidCallback? onSecondaryLongPress,
  14. Map<ShortcutActivator, Intent>? shortcuts,
  15. Map<Type, Action<Intent>>? actions,
  16. Key? key,
})

Creates a FHeaderAction from the given SVG icon.

Implementation

const FHeaderAction({
  required this.icon,
  required this.onPress,
  this.style,
  this.semanticsLabel,
  this.selected = false,
  this.autofocus = false,
  this.focusNode,
  this.onFocusChange,
  this.onHoverChange,
  this.onStateChange,
  this.onLongPress,
  this.onSecondaryPress,
  this.onSecondaryLongPress,
  this.shortcuts,
  this.actions,
  super.key,
});