notifySourceChanged method

  1. @override
void notifySourceChanged({
  1. bool clearOldData = false,
})
override

Implementation

@override
void notifySourceChanged({bool clearOldData = false}) {
  changeSource = true;
  _disposeAllSubscriptions();

  if (clearOldData) {
    dataMap!.clear();
    clearErrors();
  }

  notifyListeners();
}