getParametersFromUrl static method

Map<String, String> getParametersFromUrl(
  1. String url
)

Implementation

static Map<String, String> getParametersFromUrl(String url) {
  var uri = Uri.parse(url);
  uri.queryParameters.forEach((k, v) {
    print('key: $k - value: $v');
  });
  return uri.queryParameters;
}