RouterBuilder constructor

RouterBuilder({
  1. required Widget builder(
    1. AlbaRouterDelegate routerDelegate,
    2. AlbaRouteInformationParser routeInformationParser
    ),
  2. required List<RouteDefinition> routeDefinitions,
  3. GlobalKey<NavigatorState>? navigatorKey,
  4. GlobalKey<RouterWidgetState>? routerKey,
  5. String notFoundPath = '/not-found',
  6. String initialPath()?,
  7. List<NavigatorObserver> observers()?,
  8. 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);