FButton.raw constructor
const
FButton.raw({
- required VoidCallback? onPress,
- required Widget child,
- FBaseButtonStyle style() = _primary,
- VoidCallback? onLongPress,
- VoidCallback? onSecondaryPress,
- VoidCallback? onSecondaryLongPress,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - ValueChanged<
bool> ? onHoverChange, - ValueChanged<
FWidgetStatesDelta> ? onStateChange, - 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.style = _primary,
this.onLongPress,
this.onSecondaryPress,
this.onSecondaryLongPress,
this.autofocus = false,
this.focusNode,
this.onFocusChange,
this.onHoverChange,
this.onStateChange,
this.selected = false,
this.shortcuts,
this.actions,
super.key,
});