SmartAlertDialog constructor

SmartAlertDialog({
  1. required String title,
  2. required String message,
  3. AlertDialogText? text,
  4. AlertDialogStyle? style,
  5. dynamic onConfirmPressed()?,
  6. dynamic onCancelPressed()?,
  7. 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",
      );