notifySourceChanged method

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

Implementation

@override
void notifySourceChanged({bool clearOldData = false}) {
  changeSource = true;
  _streamSubscription?.cancel();
  _streamSubscription = null;

  if (clearOldData) {
    _data = null;
  }

  notifyListeners();
}