deliverChanges method Null safety

  1. @override
  2. @mustCallSuper
bool deliverChanges()
@mustCallSuper, override

If hasObservers, synchronously emits changes that have been queued.

Returns true if changes were emitted.

Implementation

@override
@mustCallSuper
bool deliverChanges() {
  List<C> changes;
  if (_scheduled && hasObservers) {
    changes = ChangeRecord.any as List<C>;
    _scheduled = false;
    _changes.add(changes);
    return true;
  }
  return false;
}