redirectToUrl method

String redirectToUrl([
  1. Map<String, String> paramValues = const {}
])

Returns the redirectTo URL with _redirectToParameters filled in.

Implementation

String redirectToUrl([Map<String, String> paramValues = const {}]) {
  var url = redirectTo;
  for (final parameter in _redirectToParameters) {
    url = url.replaceFirst(
        ':$parameter', Uri.encodeComponent(paramValues[parameter]!));
  }
  return url;
}