FButton.raw constructor

const FButton.raw({
  1. required VoidCallback? onPress,
  2. required Widget child,
  3. FButtonVariant? variant,
  4. FButtonSizeVariant? size,
  5. FButtonStyleDelta style = const .context(),
  6. VoidCallback? onLongPress,
  7. VoidCallback? onSecondaryPress,
  8. VoidCallback? onSecondaryLongPress,
  9. bool autofocus = false,
  10. FocusNode? focusNode,
  11. ValueChanged<bool>? onFocusChange,
  12. ValueChanged<bool>? onHoverChange,
  13. FTappableVariantChangeCallback? onVariantChange,
  14. bool selected = false,
  15. Map<ShortcutActivator, Intent>? shortcuts,
  16. Map<Type, Action<Intent>>? actions,
  17. 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,
});