QuickAlertOptions constructor

QuickAlertOptions({
  1. String? title,
  2. String? text,
  3. TextAlign? titleAlignment,
  4. TextAlign? textAlignment,
  5. Widget? widget,
  6. required QuickAlertType type,
  7. QuickAlertAnimType? animType,
  8. bool? barrierDismissible,
  9. VoidCallback? onConfirmBtnTap,
  10. VoidCallback? onCancelBtnTap,
  11. String? confirmBtnText,
  12. String? cancelBtnText,
  13. Color? confirmBtnColor,
  14. TextStyle? confirmBtnTextStyle,
  15. TextStyle? cancelBtnTextStyle,
  16. Color? backgroundColor,
  17. Color? headerBackgroundColor,
  18. Color? titleColor,
  19. Color? textColor,
  20. bool? showCancelBtn,
  21. bool? showConfirmBtn,
  22. double? borderRadius,
  23. String? customAsset,
  24. double? width,
  25. Timer? timer,
})

Alert Options

Implementation

QuickAlertOptions({
  /// Title of the dialog
  this.title,

  /// Text of the dialog
  this.text,

  /// TitleAlignment of the dialog
  this.titleAlignment,

  /// TextAlignment of the dialog
  this.textAlignment,

  /// 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,

  /// TextStyle for cancel button
  this.cancelBtnTextStyle,

  /// Backgroung Color for dialog
  this.backgroundColor,

  /// Header Backgroung Color for dialog
  this.headerBackgroundColor,

  /// Color of title
  this.titleColor,

  /// Color of text
  this.textColor,

  /// Determines if cancel button is shown or not
  this.showCancelBtn,

  /// Determines if confirm button is shown or not
  this.showConfirmBtn,

  /// Dialog Border Radius
  this.borderRadius,

  /// Asset path of your Image file
  this.customAsset,

  /// Width of the dialog
  this.width,

  /// timer for dismissing dialog (Ok button)
  this.timer,
});