RouteDefiner<T>.simple constructor
- required String path,
- required WidgetBuilder builder,
- List<
RouteGuard> guards = const [], - Map<
String, Object> ? data, - FutureOr<
String> title()?, - RouteOptions? options,
- DefinedRouteFactory? routeFactory,
- DefinedPageRouteFactory? pageRouteFactory,
Defines a screen that does not need URI state in its builder.
Implementation
RouteDefiner.simple({
required String path,
required WidgetBuilder builder,
List<RouteGuard> guards = const [],
Map<String, Object>? data,
FutureOr<String> Function(RouteState)? title,
RouteOptions? options,
DefinedRouteFactory? routeFactory,
DefinedPageRouteFactory? pageRouteFactory,
}) : this(
path: path,
builder: (context, _) => builder(context),
guards: guards,
data: data,
title: title,
options: options,
routeFactory: routeFactory,
pageRouteFactory: pageRouteFactory);