GradientElevatedButton constructor
const
GradientElevatedButton({
- Key? key,
- required VoidCallback? onPressed,
- required Gradient gradient,
- VoidCallback? onLongPress,
- ButtonStyle? style,
- FocusNode? focusNode,
- bool autofocus = false,
- Clip clipBehavior = Clip.none,
- required Widget? child,
Create an ElevatedButton.
The autofocus
and clipBehavior
arguments must not be null.
Implementation
const GradientElevatedButton({
Key? key,
required VoidCallback? onPressed,
required Gradient gradient,
VoidCallback? onLongPress,
ButtonStyle? style,
FocusNode? focusNode,
bool autofocus = false,
Clip clipBehavior = Clip.none,
required Widget? child,
}) : super(
key: key,
onPressed: onPressed,
onLongPress: onLongPress,
style: style,
focusNode: focusNode,
autofocus: autofocus,
gradient: gradient,
clipBehavior: clipBehavior,
child: child,
);