disposeControllers method

void disposeControllers()

Implementation

void disposeControllers() {
  if (_currentSnackbar != null) {
    _currentSnackbar?._removeOverlay();
    _currentSnackbar?._controller.dispose();
    _snackbarList.remove(_currentSnackbar);
  }

  _queue.cancelAllJobs();

  for (var element in _snackbarList) {
    element._controller.dispose();
  }
  _snackbarList.clear();
}