ElevatedButtonModifier constructor
const
ElevatedButtonModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- FocusNode? focusNode,
- bool autofocus = false,
- Clip clipBehavior = Clip.none,
- 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,
});