ZwapToasts class
Custom class to show toast message
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
- defaultDuration ← Duration
-
Set the global default toast duration
no getter
Static Methods
-
showErrorToast(
String message, {required BuildContext context, Duration? duration, bool showDismiss = true, dynamic onDismiss()?}) → void - Show a ZwapToastType.error toast
-
showInfoToast(
String message, {required BuildContext context, Duration? duration, bool showDismiss = false, dynamic onDismiss()?}) → void - Show a ZwapToastType.info toast
-
showSuccessToast(
String message, {required BuildContext context, Duration? duration, bool showDismiss = false, dynamic onDismiss()?}) → void - Show a ZwapToastType.success toast
-
showWarningToast(
String message, {required BuildContext context, Duration? duration, bool showDismiss = false, dynamic onDismiss()?}) → void - Show a ZwapToastType.warning toast
-
toastWidget(
String normalText, bool isError, double width, dynamic dismiss()) → Widget