showTextBar method
Shows a snackbar with the specified text message.
The text parameter specifies the text to be displayed in the snackbar.
Implementation
void showTextBar(String text, [SnackBarBehavior? behavior]) {
ScaffoldMessenger.of(this)
..hideCurrentSnackBar()
..showSnackBar(
SnackBar(content: Text(text), behavior: behavior),
);
}