QuickAlert class

QuickAlert

Constructors

QuickAlert()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

show({required BuildContext context, String? title, String? text, TextAlign? titleAlignment, TextAlign? textAlignment, Widget? widget, required QuickAlertType type, QuickAlertAnimType animType = QuickAlertAnimType.scale, bool barrierDismissible = true, VoidCallback? onConfirmBtnTap, VoidCallback? onCancelBtnTap, String confirmBtnText = 'Okay', String cancelBtnText = 'Cancel', Color confirmBtnColor = Colors.blue, TextStyle? confirmBtnTextStyle, TextStyle? cancelBtnTextStyle, Color backgroundColor = Colors.white, Color headerBackgroundColor = Colors.white, Color titleColor = Colors.black, Color textColor = Colors.black, Color? barrierColor, bool showCancelBtn = false, bool showConfirmBtn = true, double borderRadius = 15.0, String? customAsset, double? width, Duration? autoCloseDuration, bool disableBackBtn = false}) Future
Instantly display animated alert dialogs such as success, error, warning, confirm, loading or even a custom dialog.