RouteConfig constructor

RouteConfig(
  1. String name, {
  2. required String path,
  3. bool usesPathAsKey = false,
  4. List<StackedRouteGuard> guards = const [],
  5. bool fullMatch = false,
  6. String? redirectTo,
  7. String? parent,
  8. Map<String, dynamic> meta = const {},
  9. bool deferredLoading = false,
  10. List<RouteConfig>? children,
})

Implementation

RouteConfig(
  this.name, {
  required this.path,
  this.usesPathAsKey = false,
  this.guards = const [],
  this.fullMatch = false,
  this.redirectTo,
  this.parent,
  this.meta = const {},
  this.deferredLoading = false,
  List<RouteConfig>? children,
}) : _children = children != null ? RouteCollection.from(children) : null;