Skip to content

Commit

Permalink
Merge pull request #2953 from seungsuyoo/fix-snackbar-cancel
Browse files Browse the repository at this point in the history
Make cancelAllSnackbars async
  • Loading branch information
jonataslaw authored Nov 2, 2023
2 parents df0b2cc + 2f6add0 commit 4a073ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/get_navigation/src/snackbar/snackbar_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ class SnackbarController {
return future;
}

static void cancelAllSnackbars() {
_snackBarQueue._cancelAllJobs();
static Future<void> cancelAllSnackbars() async {
await _snackBarQueue._cancelAllJobs();
}

static Future<void> closeCurrentSnackbar() async {
Expand Down

0 comments on commit 4a073ae

Please sign in to comment.