removeLocalHistoryEntry method

void removeLocalHistoryEntry (
  1. LocalHistoryEntry entry
)
inherited

Remove a local history entry from this route.

The entry's LocalHistoryEntry.onRemove callback, if any, will be called synchronously.

Implementation

void removeLocalHistoryEntry(LocalHistoryEntry entry) {
  assert(entry != null);
  assert(entry._owner == this);
  assert(_localHistory.contains(entry));
  _localHistory.remove(entry);
  entry._owner = null;
  entry._notifyRemoved();
  if (_localHistory.isEmpty)
    changedInternalState();
}