FHeaderAction constructor

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

Creates a FHeaderAction from the given SVG icon.

Implementation

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