remove method Null safety

void remove()

Remove this entry from the history of its associated LocalHistoryRoute.

Implementation

void remove() {
  _owner?.removeLocalHistoryEntry(this);
  assert(_owner == null);
}