errorSnackBar method
void
errorSnackBar()
Implementation
void errorSnackBar() {
final state = ScaffoldMessenger.maybeOf(context!);
state?.showSnackBar(
const SnackBar(
content: Text('Error. No menu options defined.'),
),
);
}