AlertControllerObject.multipleActions constructor
AlertControllerObject.multipleActions({
- required VoidCallback onCancellation,
- required String alertTitle,
- required String alertBody,
- required IconData alertIcon,
- required List<
AlertControllerAction> ? actions, - bool? canUserExit = true,
A constructor that takes multiple items through the actions list, and otherwise throws an error
Implementation
AlertControllerObject.multipleActions({
required this.onCancellation,
required this.alertTitle,
required this.alertBody,
required this.alertIcon,
required this.actions,
this.canUserExit = true,
}) : assert(actions!.length >= 2);