namedLocation method

String namedLocation(
  1. String name, {
  2. Map<String, String> params = const <String, String>{},
  3. Map<String, dynamic> queryParams = const <String, dynamic>{},
})

Get a location from route name and parameters. This is useful for redirecting to a named location.

Implementation

String namedLocation(
  String name, {
  Map<String, String> params = const <String, String>{},
  Map<String, dynamic> queryParams = const <String, dynamic>{},
}) =>
    _routeInformationParser.configuration.namedLocation(
      name,
      params: params,
      queryParams: queryParams,
    );