RouterBuilder constructor
RouterBuilder({
- required Widget builder(
- AlbaRouterDelegate routerDelegate,
- AlbaRouteInformationParser routeInformationParser
- required List<
RouteDefinition> routeDefinitions, - GlobalKey<
RouterWidgetState> ? routerKey, - String notFoundPath = '/not-found',
- String initialPath()?,
- List<
NavigatorObserver> observers()?, - Key? key,
Creates a RouterBuilder.
Implementation
RouterBuilder({
required this.builder,
required this.routeDefinitions,
GlobalKey<NavigatorState>? navigatorKey,
this.routerKey,
this.notFoundPath = '/not-found',
this.initialPath,
this.observers,
Key? key,
}) : navigatorKey = navigatorKey ?? GlobalKey<NavigatorState>(),
super(key: key);