RouterState constructor

RouterState({
  1. required List<RouteDefinition> routeDefinitions,
  2. required String notFoundPath,
  3. required GlobalKey<NavigatorState> navigatorKey,
})

Creates a RouterState.

Implementation

RouterState({
  required List<RouteDefinition> routeDefinitions,
  required String notFoundPath,
  required GlobalKey<NavigatorState> navigatorKey,
})  : _routeDefinitions = routeDefinitions,
      _notFoundPath = notFoundPath,
      _navigatorKey = navigatorKey;