QuickAlertOptions class

Alert Options

Constructors

QuickAlertOptions.new({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

Properties

animType QuickAlertAnimType?
Animation type scale, rotate, slideInDown, slideInUp, slideInLeft, slideInRight
getter/setter pair
barrierDismissible bool?
Barrier Dissmisable
getter/setter pair
borderRadius double?
Asset path of your Image file
getter/setter pair
cancelBtnText String?
Cancel button text
getter/setter pair
cancelBtnTextStyle TextStyle?
Determines if cancel button is shown or not
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?
Width of the dialog
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
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?
Dialog Border Radius
getter/setter pair
text String?
Text of the dialog
getter/setter pair
title String?
Title of the dialog
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?
Determines how long the dialog stays open for before closing, default is null. When it is null, it won't autoclose
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