previousRoute property

Route? previousRoute

Returns the route that is below the current topmost route, if it exists.

Implementation

Route? get previousRoute {
  return _routeStack.length >= 2 ? _routeStack[_routeStack.length - 2] : null;
}