SweetAlertOptions class
Constructors
- SweetAlertOptions.new({bool? showCancelButton = false, String? title, String? subtitle, SweetAlertOnPress? onPress, Color? cancelButtonColor, String? cancelButtonText, Color? confirmButtonColor, String? confirmButtonText, SweetAlertStyle? style})
Properties
- cancelButtonColor → Color?
-
if null,default value is
SweetAlert.cancel
final - cancelButtonText → String?
-
if null,default value is
SweetAlert.cancelText
final - confirmButtonColor → Color?
-
if null,
default value is
SweetAlert.success
whenshowCancelButton
=false andSweetAlert.danger
whenshowCancelButton
= truefinal - confirmButtonText → String?
-
if null,default value is
SweetAlert.successText
whenshowCancelButton
=false andSweetAlert.dangerText
whenshowCancelButton
= truefinal - hashCode → int
-
The hash code for this object.
no setterinherited
- onPress → SweetAlertOnPress?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCancelButton → bool?
-
If set to true, two buttons will be displayed.
final
- style → SweetAlertStyle?
-
final
- subtitle → String?
-
final
- title → String?
-
final
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