FButton.raw constructor

const FButton.raw({
  1. required VoidCallback? onPress,
  2. required Widget child,
  3. FBaseButtonStyle style(
    1. FButtonStyle
    ) = _primary,
  4. VoidCallback? onLongPress,
  5. VoidCallback? onSecondaryPress,
  6. VoidCallback? onSecondaryLongPress,
  7. bool autofocus = false,
  8. FocusNode? focusNode,
  9. ValueChanged<bool>? onFocusChange,
  10. ValueChanged<bool>? onHoverChange,
  11. ValueChanged<FWidgetStatesDelta>? onStateChange,
  12. bool selected = false,
  13. Map<ShortcutActivator, Intent>? shortcuts,
  14. Map<Type, Action<Intent>>? actions,
  15. 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,
});