PopupConfig class

Constructors

PopupConfig({bool isAutoClosed = true, PopupDesign design = const PopupDesign(), Size dialogSize = const Size(200, 400), String confirmButtonLabel = "OK", String submitButtonLabel = "Submit", String cancelButtonLabel = "Cancel", String yesButtonLabel = "Yes", String noButtonLabel = "No", List<PopupButton>? questionButtons, List<PopupButton>? messageButtons, Color? cancelButtonColor, int maxShortMessagesLines = 3, double longMessageGradientFraction = 0.4, double longMessageHeight = 315, double shortMessageHeight = 60, double chooseMessageHeight = 36, double inputMessageHeight = 40, Map<PopupType, Icon?> iconByType = const {PopupType.info : Icon(Icons.info, color: Colors.blue, size: 70), PopupType.success : Icon(Icons.check_circle, color: Colors.green, size: 70), PopupType.warning : Icon(Icons.warning, color: Colors.orange, size: 70), PopupType.error : Icon(Icons.error, color: Colors.red, size: 70), PopupType.question : Icon(Icons.question_mark, color: Colors.blue, size: 70)}, Map<PopupType, Color> colorByType = const {PopupType.info : Colors.blue, PopupType.success : Colors.green, PopupType.warning : Colors.orange, PopupType.error : Colors.red, PopupType.question : Colors.blue, PopupType.input : Colors.blue, PopupType.choose : Colors.blue}})
const

Properties

cancelButtonColor Color?
final
cancelButtonLabel String
final
chooseMessageHeight double
final
colorByType Map<PopupType, Color>
final
confirmButtonLabel String
final
design PopupDesign
final
dialogSize Size
final
hashCode int
The hash code for this object.
no setterinherited
iconByType Map<PopupType, Icon?>
final
inputMessageHeight double
final
isAutoClosed bool
final
longMessageGradientFraction double
final
longMessageHeight double
final
maxShortMessagesLines int
final
messageButtons List<PopupButton>?
final
noButtonLabel String
final
questionButtons List<PopupButton>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortMessageHeight double
final
submitButtonLabel String
final
yesButtonLabel 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