getCurrentRoute method

AppRoute getCurrentRoute()

Returns the closest representation of the currentl top-most route.

Implementation

AppRoute getCurrentRoute() {
  final currentRoute = current ?? appRoutes[appRootRoute] ?? AppRoute.fleet;

  if (currentRoute is FleetRoute) {
    return FleetRoute(
      view: fleetView,
      showingDashboard: fleetShowingDashboard,
    );
  }

  return currentRoute;
}