QuickAlertOptions constructor
QuickAlertOptions({
- String? title,
- String? text,
- Widget? widget,
- required QuickAlertType type,
- QuickAlertAnimType? animType,
- bool? barrierDismissible,
- VoidCallback? onConfirmBtnTap,
- VoidCallback? onCancelBtnTap,
- String? confirmBtnText,
- String? cancelBtnText,
- Color? confirmBtnColor,
- TextStyle? confirmBtnTextStyle,
- TextStyle? cancelBtnTextStyle,
- bool? showCancelBtn,
- double? borderRadius,
- String? customAsset,
- double? width,
Alert Options
Implementation
QuickAlertOptions({
/// Title of the dialog
this.title,
/// Text of the dialog
this.text,
/// Custom Widget of the dialog
this.widget,
/// Alert type [success, error, warning, confirm, info, loading, custom]
required this.type,
/// Animation type [scale, rotate, slideInDown, slideInUp, slideInLeft, slideInRight]
this.animType,
/// Barrier Dissmisable
this.barrierDismissible,
/// Triggered when confirm button is tapped
this.onConfirmBtnTap,
/// Triggered when cancel button is tapped
this.onCancelBtnTap,
/// Confirmation button text
this.confirmBtnText,
/// Cancel button text
this.cancelBtnText,
/// Color for confirm button
this.confirmBtnColor,
/// TextStyle for confirm button
this.confirmBtnTextStyle,
/// Determines if cancel button is shown or not
this.cancelBtnTextStyle,
/// Dialog Border Radius
this.showCancelBtn,
/// Asset path of your Image file
this.borderRadius,
/// Width of the dialog
this.customAsset,
/// Determines how long the dialog stays open for before closing, [default] is null. When it is null, it won't autoclose
this.width,
});