Overlay-based toast notifications with snack-bar and banner layouts.
Usage:
VoToast.show(context, message: 'Saved!', type: VoToastType.success);
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 Methods
-
dismissAll(
) → void -
dismissById(
String id) → bool -
dismissFirst(
) → bool -
dismissLast(
) → bool -
error(
{BuildContext? context, required String message, String? title, VoToastStyle? style, VoToastPosition? position, Widget? action, Duration? duration}) → String -
info(
{BuildContext? context, required String message, String? title, VoToastStyle? style, VoToastPosition? position, Widget? action, Duration? duration}) → String -
show(
{BuildContext? context, required String message, String? toastId, String? title, VoToastType type = VoToastType.info, VoToastPosition? position, VoToastStyle? style, Widget? leading, Widget? action, Duration? duration, VoidCallback? onDismiss}) → String - Shows a new toast notification.
-
success(
BuildContext? context, {required String message, String? title, VoToastStyle? style, VoToastPosition? position, Widget? action, Duration? duration}) → String -
warning(
{BuildContext? context, required String message, String? title, VoToastStyle? style, VoToastPosition? position, Widget? action, Duration? duration}) → String