QuickAlertOptions class

Alert Options

Constructors

QuickAlertOptions({String? title, String? text, TextAlign? titleAlignment, TextAlign? textAlignment, Widget? widget, required QuickAlertType type, QuickAlertAnimType? animType, bool? barrierDismissible, VoidCallback? onConfirmBtnTap, VoidCallback? onCancelBtnTap, String? confirmBtnText, String? cancelBtnText, Color? confirmBtnColor, TextStyle? confirmBtnTextStyle, TextStyle? cancelBtnTextStyle, Color? backgroundColor, Color? headerBackgroundColor, Color? titleColor, Color? textColor, bool? showCancelBtn, bool? showConfirmBtn, double? borderRadius, String? customAsset, double? width, Timer? timer})
Alert Options

Properties

animType QuickAlertAnimType?
Animation type scale, rotate, slideInDown, slideInUp, slideInLeft, slideInRight
getter/setter pair
backgroundColor Color?
Backgroung Color for dialog
getter/setter pair
barrierDismissible bool?
Barrier dismissible
getter/setter pair
borderRadius double?
Dialog Border Radius
getter/setter pair
cancelBtnText String?
Cancel button text
getter/setter pair
cancelBtnTextStyle TextStyle?
TextStyle for cancel button
getter/setter pair
confirmBtnColor Color?
Color for confirm button
getter/setter pair
confirmBtnText String?
Confirmation button text
getter/setter pair
confirmBtnTextStyle TextStyle?
TextStyle for confirm button
getter/setter pair
customAsset String?
Asset path of your Image file
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headerBackgroundColor Color?
Header Backgroung Color for dialog
getter/setter pair
onCancelBtnTap VoidCallback?
Triggered when cancel button is tapped
getter/setter pair
onConfirmBtnTap VoidCallback?
Triggered when confirm button is tapped
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCancelBtn bool?
Determines if cancel button is shown or not
getter/setter pair
showConfirmBtn bool?
Determines if confirm button is shown or not
getter/setter pair
text String?
Text of the dialog
getter/setter pair
textAlignment TextAlign?
TextAlignment of the dialog
getter/setter pair
textColor Color?
Color of text
getter/setter pair
timer Timer?
timer for dismissing dialog (Ok button)
getter/setter pair
title String?
Title of the dialog
getter/setter pair
titleAlignment TextAlign?
TitleAlignment of the dialog
getter/setter pair
titleColor Color?
Color of title
getter/setter pair
type QuickAlertType
Alert type success, error, warning, confirm, info, loading, custom
getter/setter pair
widget Widget?
Custom Widget of the dialog
getter/setter pair
width double?
Width of the dialog
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited