showMessage method
Implementation
void showMessage(
String message, {
SnackBarAction? action,
bool? hideCurrent,
}) {
if (hideCurrent ?? this.hideCurrent) {
_key.currentState?.hideCurrentSnackBar();
}
_key.currentState?.showSnackBar(
SnackBar(
content: Text(message),
action: action,
),
);
}