CustomAlertDialog constructor

const CustomAlertDialog({
  1. Key? key,
  2. required String title,
  3. required String content,
  4. Widget? icon,
  5. CustomAlertDialogType type = CustomAlertDialogType.info,
  6. String buttonLabel = "Ok",
  7. VoidCallback? onClick,
  8. TextStyle? titleStyle,
  9. TextStyle? contentStyle,
})

Implementation

const CustomAlertDialog({
  Key? key,
  required this.title,
  required this.content,
  this.icon,
  this.type = CustomAlertDialogType.info,
  this.buttonLabel = "Ok",
  this.onClick,
  this.titleStyle,
  this.contentStyle,
}) : super(key: key);