FButton.raw constructor
const
FButton.raw({
- required VoidCallback? onPress,
- required Widget child,
- FButtonVariant? variant,
- FButtonSizeVariant? size,
- FButtonStyleDelta style = const .context(),
- VoidCallback? onLongPress,
- VoidCallback? onSecondaryPress,
- VoidCallback? onSecondaryLongPress,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - ValueChanged<
bool> ? onHoverChange, - FTappableVariantChangeCallback? onVariantChange,
- bool selected = false,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - Key? key,
Creates a FButton with custom content.
Implementation
const FButton.raw({
required this.onPress,
required this.child,
this.variant,
this.size,
this.style = const .context(),
this.onLongPress,
this.onSecondaryPress,
this.onSecondaryLongPress,
this.autofocus = false,
this.focusNode,
this.onFocusChange,
this.onHoverChange,
this.onVariantChange,
this.selected = false,
this.shortcuts,
this.actions,
super.key,
});