close method

Future<void> close({
  1. bool withAnimations = true,
})

Close the snackbar with animation

Implementation

Future<void> close({bool withAnimations = true}) async {
  if (!withAnimations) {
    _removeOverlay();
    return;
  }
  _removeEntry();
  await future;
}