ZeroSnackbar class

A custom snackbar that can be used to display a message to the user. ZeroSnackbar have 2 types of snackbar, ZeroSnackbarType.singleline and ZeroSnackbarType.multiline. ZeroSnackbarType.singleline is a snackbar that can only display a single line of text for short messages. ZeroSnackbarType.multiline is a snackbar that can display multiple lines of text for longer messages.

Constructors

ZeroSnackbar.new()
factory

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

hide() → void
hide hides the snackbar by removing the overlay entry.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show(BuildContext context, String message, {ZeroSnackbarType type = ZeroSnackbarType.singleline, bool closeButton = true, bool actionButton = false, String? actionText, VoidCallback? actionOnPressed, VoidCallback? onClose, ZeroSnackbarStyle? style, SnackbarPosition position = SnackbarPosition.bottom}) → void
show is a function that displays a snackbar.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited