flushBatchNotification method

  1. @override
void flushBatchNotification()
override

Flush deferred listener notifications at the end of a batch.

Implementation

@override
void flushBatchNotification() {
  final shouldNotify = _forceNotify ||
      !_hasBatchBaseline ||
      super.value != _batchBaselineValue;
  _forceNotify = false;
  _hasBatchBaseline = false;
  _batchBaselineValue = null;
  if (shouldNotify && !_disposed) {
    super.notifyListeners();
  }
}