SmartAlertDialog constructor
SmartAlertDialog({
- required String title,
- required String message,
- AlertDialogText? text,
- AlertDialogStyle? style,
- dynamic onConfirmPressed()?,
- dynamic onCancelPressed()?,
- bool isDismissible = false,
text default value is DEFAULT_TEXT
style default value is DEFAULT_STYLE
Implementation
SmartAlertDialog({
required this.title,
required this.message,
this.text,
this.style,
this.onConfirmPressed,
this.onCancelPressed,
this.isDismissible = false,
}) : assert(
title.isNotEmpty,
"You must provide a non empty title for the alert dialog",
),
assert(
message.isNotEmpty,
"You must provide a non empty message for the alert dialog",
);