queryToMap static method
Implementation
static Map<String, String> queryToMap(String queryList) {
var map = <String, String>{};
for (var pair in queryList.split('&')) {
var split = _split(pair, '=');
if (split.isEmpty) continue;
var key = _urlDecode(split[0]);
var value = split.length > 1 ? _urlDecode(split[1]) : '';
map[key] = value;
}
return map;
}