GoRouterState constructor Null safety
- RouteConfiguration _configuration,
- {required String location,
- required String subloc,
- required String? name,
- String? path,
- String? fullpath,
- Map<
String, String> params = const <String, String>{}, - Map<
String, String> queryParams = const <String, String>{}, - Map<
String, List< queryParametersAll = const <String, List<String>>{},String> > - Object? extra,
- Exception? error,
- ValueKey<
String> ? pageKey}
Default constructor for creating route state during routing.
Implementation
GoRouterState(
this._configuration, {
required this.location,
required this.subloc,
required this.name,
this.path,
this.fullpath,
this.params = const <String, String>{},
this.queryParams = const <String, String>{},
this.queryParametersAll = const <String, List<String>>{},
this.extra,
this.error,
ValueKey<String>? pageKey,
}) : pageKey = pageKey ??
ValueKey<String>(error != null
? 'error'
: fullpath != null && fullpath.isNotEmpty
? fullpath
: subloc);