closeCurrentSnackbar method
A function to close the currently displayed snackbar, if any.
Waits for the snackbar to close before returning.
Implementation
Future<void> closeCurrentSnackbar() async {
await SnackbarController.closeCurrentSnackbar();
}