CupertinoAlertDialog constructor Null safety
- {Key? key,
- Widget? title,
- Widget? content,
- List<
Widget> actions = const <Widget>[], - ScrollController? scrollController,
- ScrollController? actionScrollController,
- Duration insetAnimationDuration = const Duration(milliseconds: 100),
- Curve insetAnimationCurve = Curves.decelerate}
Creates an iOS-style alert dialog.
The actions must not be null.
Implementation
const CupertinoAlertDialog({
super.key,
this.title,
this.content,
this.actions = const <Widget>[],
this.scrollController,
this.actionScrollController,
this.insetAnimationDuration = const Duration(milliseconds: 100),
this.insetAnimationCurve = Curves.decelerate,
}) : assert(actions != null);