FButton.raw constructor

const FButton.raw({
  1. required VoidCallback? onPress,
  2. required Widget child,
  3. FBaseButtonStyle style = Variant.primary,
  4. VoidCallback? onLongPress,
  5. bool autofocus = false,
  6. FocusNode? focusNode,
  7. ValueChanged<bool>? onFocusChange,
  8. ValueChanged<bool>? onHoverChange,
  9. ValueChanged<Set<WidgetState>>? onStateChange,
  10. bool selected = false,
  11. Key? key,
})

Creates a FButton with custom content.

Implementation

const FButton.raw({
  required this.onPress,
  required this.child,
  this.style = Variant.primary,
  this.onLongPress,
  this.autofocus = false,
  this.focusNode,
  this.onFocusChange,
  this.onHoverChange,
  this.onStateChange,
  this.selected = false,
  super.key,
});