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 when showCancelButton=false and SweetAlert.danger when showCancelButton = true
final
confirmButtonText String?
if null,default value is SweetAlert.successText when showCancelButton=false and SweetAlert.dangerText when showCancelButton = true
final
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