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