reset method

void reset()

Resets the navigation state to the top level.

Implementation

void reset() {
  _navigationStack.clear();
  value = null;
}