MyDialog class

static class to call alert, confirm, toast etc.

Constructors

MyDialog()

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 Properties

alignBottom Alignment
default bottom position for toast
no setter
alignTop Alignment
detault top position for toast
no setter
iconError Widget
error icon for toast
no setter
iconInfo Widget
info icon for toast
no setter
iconSuccess Widget
success icon for toast
no setter
iconWarning Widget
warning icon for toast
no setter
setting MyDialogSetting
getter/setter pair

Static Methods

alert(dynamic message, {String? buttonText, String title = '', Widget? titleWidget, bool barrierDismissible = true, Color? barrierColor = Colors.black54}) Future<bool?>
confirm(dynamic message, {String? buttonText, String title = '', Widget? titleWidget, String? cancelText, bool barrierDismissible = true, Color? barrierColor = Colors.black54}) Future<bool?>
getAlignment(String align) Alignment
transform string to Alignment that use for toast
getIcon(IconType iconType, [MyDialogSetting? instSetting]) Widget?
imagePreview(List<String> images, {String? currentImage, bool barrierDismissible = true, Color? barrierColor = Colors.black54}) Future
initialize(BuildContext context, [MyDialogSetting? setting]) → void
initialize a MyDialog instance
loading(String message, {dynamic showProgress = false, dynamic showOverlay = true, double time = 3}) DialogController
of([BuildContext? context, MyDialogSetting? setting]) ShirneDialog
return a MyDialog instance or construct new instance with BuildContext
snack(String message, {Widget? action, int duration = 3, Alignment? align, double width = 0.7}) EntryController
toast(String message, {int duration = 2, Alignment? align, Widget? icon, IconType iconType = IconType.none}) → void