FHeaderAction.x constructor
FHeaderAction.x({
- required VoidCallback? onPress,
- FHeaderActionStyle? style,
- 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 with FIcons.x
.
Implementation
factory FHeaderAction.x({
required VoidCallback? onPress,
FHeaderActionStyle? style,
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<Intent>>? actions,
Key? key,
}) => FHeaderAction(
icon: const Icon(FIcons.x),
onPress: onPress,
style: style,
autofocus: autofocus,
focusNode: focusNode,
onFocusChange: onFocusChange,
onHoverChange: onHoverChange,
onStateChange: onStateChange,
onLongPress: onLongPress,
onSecondaryPress: onSecondaryPress,
onSecondaryLongPress: onSecondaryLongPress,
shortcuts: shortcuts,
actions: actions,
key: key,
);