stopLoading method

void stopLoading()

Stops the loading process and notifies listeners.

Implementation

void stopLoading() {
  stream?.close();
  stream = null;
  notifyListeners();
}