PathRouteSettings constructor

PathRouteSettings({
  1. required dynamic route,
  2. required String? label,
  3. String? resolvedPath,
  4. RouteParams? routeParams,
})

Creates data used to construct routes.

Implementation

PathRouteSettings({
  required dynamic route,
  required this.label,
  this.resolvedPath,
  this.routeParams,
})  : route = calculateRoute(route),
      super(
          name: resolvedPath ?? calculateRoute(route) ?? label,
          arguments: routeParams);