Snackbar class

A themed snackbar with severity colors, icon and action.

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

error(BuildContext context, String message, {String? actionLabel, VoidCallback? onAction, Duration duration = const Duration(seconds: 5)}) → SnackBar
Shows an error snackbar.
info(BuildContext context, String message, {String? actionLabel, VoidCallback? onAction, Duration duration = const Duration(seconds: 4)}) → SnackBar
Shows an informational snackbar.
success(BuildContext context, String message, {String? actionLabel, VoidCallback? onAction, Duration duration = const Duration(seconds: 4)}) → SnackBar
Shows a success snackbar.
warning(BuildContext context, String message, {String? actionLabel, VoidCallback? onAction, Duration duration = const Duration(seconds: 4)}) → SnackBar
Shows a warning snackbar.