GradientElevatedButton constructor

const GradientElevatedButton({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. required Gradient gradient,
  4. VoidCallback? onLongPress,
  5. ButtonStyle? style,
  6. FocusNode? focusNode,
  7. bool autofocus = false,
  8. Clip clipBehavior = Clip.none,
  9. 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,
      );