hide method

void hide()

Implementation

void hide() {
  if (context == null) {
    throw Exception("Context is null");
  }

  ScaffoldMessenger.of(context!).hideCurrentSnackBar();
}