toRouteInformation method

RouteInformation toRouteInformation()

Transform routes information to RouteInformation.

Implementation

RouteInformation toRouteInformation() {
  return RouteInformation(
    location: _routesInfo.last.path,
    state: _routesInfo.map((routeInfo) => routeInfo.toMap()).toList(),
  );
}