MaterialElevatedButtonData constructor Null safety

MaterialElevatedButtonData(
  1. {Key? widgetKey,
  2. Widget? child,
  3. VoidCallback? onPressed,
  4. VoidCallback? onLongPress,
  5. FocusNode? focusNode,
  6. ButtonStyle? style,
  7. bool? autofocus,
  8. Clip? clipBehavior,
  9. Widget? icon}
)

Implementation

MaterialElevatedButtonData({
  Key? widgetKey,
  Widget? child,
  VoidCallback? onPressed,
  this.onLongPress,
  this.focusNode,
  this.style,
  this.autofocus,
  this.clipBehavior,
  this.icon,
}) : super(
        widgetKey: widgetKey,
        child: child,
        onPressed: onPressed,
      );