FastAlertDialog constructor
const
FastAlertDialog({
- Key? key,
- String? titleText,
- Color? backgroundColor,
- String? alternativeText,
- VoidCallback? onAlternative,
- Color? messageColor,
- String? messageText,
- String? cancelText,
- Color? titleColor,
- String? validText,
- VoidCallback? onCancel,
- List<
Widget> ? children, - List<
Widget> ? actions, - VoidCallback? onValid,
- bool? showCancel,
- bool? showValid,
- bool? showAlternative,
Implementation
const FastAlertDialog({
super.key,
this.titleText,
super.backgroundColor,
this.alternativeText,
this.onAlternative,
this.messageColor,
this.messageText,
this.cancelText,
this.titleColor,
this.validText,
this.onCancel,
this.children,
super.actions,
this.onValid,
bool? showCancel,
bool? showValid,
bool? showAlternative,
}) : assert(messageText == null || children == null),
assert(messageText != null || children != null),
showAlternative = showAlternative ?? false,
showValid = showValid ?? true,
showCancel = showCancel ?? false;