RouterConfiguration constructor

RouterConfiguration(
  1. List<NavigationPath> paths, {
  2. GlobalKey<NavigatorState>? navigatorKey,
  3. List<NamedPath>? namedPaths,
  4. LinkNavigatorInterface? linkNavigator,
})

Implementation

RouterConfiguration(
  this.paths, {
  GlobalKey<NavigatorState>? navigatorKey,
  List<NamedPath>? namedPaths,
  this.linkNavigator,
})  : navigatorKey = navigatorKey ?? GlobalKey<NavigatorState>(),
      namedPaths = _createNamedPaths(namedPaths);