optimizeInternalSnapshot method Null safety

void optimizeInternalSnapshot()

Implementation

void optimizeInternalSnapshot() {
  if (_internalSnapshot?.hasObservers == false) {
    _internalSnapshot = null;
  }
}