buildState method

  1. @override
GoRouterState buildState(
  1. RouteConfiguration configuration,
  2. RouteMatchList matches
)
override

Gets the state that represent this route match.

Implementation

@override
GoRouterState buildState(
    RouteConfiguration configuration, RouteMatchList matches) {
  return GoRouterState(
    configuration,
    uri: matches.uri,
    matchedLocation: matchedLocation,
    fullPath: matches.fullPath,
    pathParameters: matches.pathParameters,
    pageKey: pageKey,
    name: route.name,
    path: route.path,
    extra: matches.extra,
    topRoute: matches.lastOrNull?.route,
  );
}