CupertinoAlertDialog constructor Null safety

const CupertinoAlertDialog(
  1. {Key? key,
  2. Widget? title,
  3. Widget? content,
  4. List<Widget> actions,
  5. ScrollController? scrollController,
  6. ScrollController? actionScrollController,
  7. Duration insetAnimationDuration,
  8. Curve insetAnimationCurve}
)

Creates an iOS-style alert dialog.

The actions must not be null.

Implementation

const CupertinoAlertDialog({
  Key? 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),
     super(key: key);