namedLocation method

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

Get a location from route name and parameters.

Implementation

String namedLocation(
  String name, {
  Map<String, String> pathParameters = const <String, String>{},
  Map<String, dynamic> queryParameters = const <String, dynamic>{},
}) =>
    App.goRouter?.namedLocation(name,
        pathParameters: pathParameters, queryParameters: queryParameters) ??
    '';