toQueryString method
Converts this map to a URL query string.
{'page': 1, 'q': 'hello'}.toQueryString() // 'page=1&q=hello'
Implementation
String toQueryString() => entries
.map((e) =>
'${Uri.encodeQueryComponent(e.key.toString())}=${Uri.encodeQueryComponent(e.value.toString())}')
.join('&');