clear method Null safety

  1. @override
void clear()
override

Implementation

@override
void clear() {
  this._isLoading = false;
  this._isLoaded = false;
  this._isError = false;
  this._errorMessage = "";
  this._isLoadingSC = BehaviorSubject<bool>();
  this._isLoadedSC = BehaviorSubject<bool>();
  this._isErrorSC = BehaviorSubject<bool>();
  this._errorMessageSC = BehaviorSubject<String>();

  this._itemsSC = BehaviorSubject<List<T>?>();
  this._dataSC = BehaviorSubject<T?>();

  this._items = null;
  this._data = null;
}