ElevatedButtonModifier constructor

const ElevatedButtonModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required VoidCallback? onPressed,
  5. VoidCallback? onLongPress,
  6. ValueChanged<bool>? onHover,
  7. ValueChanged<bool>? onFocusChange,
  8. ButtonStyle? style,
  9. FocusNode? focusNode,
  10. bool autofocus = false,
  11. Clip clipBehavior = Clip.none,
  12. MaterialStatesController? statesController,
})

Create an ElevatedButton.

The autofocus and clipBehavior arguments must not be null.

Implementation

const ElevatedButtonModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.onPressed,
  this.onLongPress,
  this.onHover,
  this.onFocusChange,
  this.style,
  this.focusNode,
  this.autofocus = false,
  this.clipBehavior = Clip.none,
  this.statesController,
});