RouteDefiner<T> constructor
- required String path,
- required Widget builder(),
- List<
RouteGuard> guards = const [], - Map<
String, Object> ? data, - FutureOr<
String> title()?, - RouteOptions? options,
- DefinedRouteFactory? routeFactory,
Implementation
RouteDefiner({
required this.path,
required this.builder,
List<RouteGuard> guards = const [],
Map<String, Object>? data,
this.title,
this.options,
this.routeFactory,
}) : guards = List.unmodifiable(guards),
data = data == null ? null : Map.unmodifiable(data),
pattern = RoutePattern(path);