FHeaderAction constructor
const
FHeaderAction({
- required Widget icon,
- required VoidCallback? onPress,
- FHeaderActionStyle? style,
- String? semanticsLabel,
- bool selected = false,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - ValueChanged<
bool> ? onHoverChange, - ValueChanged<
FWidgetStatesDelta> ? onStateChange, - VoidCallback? onLongPress,
- VoidCallback? onSecondaryPress,
- VoidCallback? onSecondaryLongPress,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - 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,
});