QuickAlertOptions constructor

QuickAlertOptions({
  1. String? title,
  2. String? text,
  3. Widget? widget,
  4. required QuickAlertType type,
  5. QuickAlertAnimType? animType,
  6. bool? barrierDismissible,
  7. VoidCallback? onConfirmBtnTap,
  8. VoidCallback? onCancelBtnTap,
  9. String? confirmBtnText,
  10. String? cancelBtnText,
  11. Color? confirmBtnColor,
  12. TextStyle? confirmBtnTextStyle,
  13. TextStyle? cancelBtnTextStyle,
  14. bool? showCancelBtn,
  15. double? borderRadius,
  16. String? customAsset,
  17. 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,
});