parseNameValuePairs method

Map<String, String>? parseNameValuePairs(
  1. String uri
)

Implementation

Map<String, String>? parseNameValuePairs(String uri) {
  final paramStart = uri.indexOf('?');
  if (paramStart < 0) {
    return null;
  }
  final result = <String, String>{};
  for (String keyValue in uri.substring(paramStart + 1).split(_ampersand)) {
    _appendKeyValue(keyValue, result);
  }
  return result;
}