startLoading method

void startLoading()

Starts the loading process and notifies listeners.

Implementation

void startLoading() {
  if(stream != null) stream = null;
  stream = StreamController<bool>();
  stream?.add(true);
  notifyListeners();
}