CupertinoDialogAction constructor Null safety

const CupertinoDialogAction(
  1. {Key? key,
  2. VoidCallback? onPressed,
  3. bool isDefaultAction = false,
  4. bool isDestructiveAction = false,
  5. TextStyle? textStyle,
  6. required Widget child}
)

Creates an action for an iOS-style dialog.

Implementation

const CupertinoDialogAction({
  super.key,
  this.onPressed,
  this.isDefaultAction = false,
  this.isDestructiveAction = false,
  this.textStyle,
  required this.child,
}) : assert(child != null),
     assert(isDefaultAction != null),
     assert(isDestructiveAction != null);