CupertinoActionSheetAction constructor Null safety
- {Key? key,
- required VoidCallback onPressed,
- bool isDefaultAction = false,
- bool isDestructiveAction = false,
- required Widget child}
Creates an action for an iOS-style action sheet.
Implementation
const CupertinoActionSheetAction({
super.key,
required this.onPressed,
this.isDefaultAction = false,
this.isDestructiveAction = false,
required this.child,
}) : assert(child != null),
assert(onPressed != null);