Convert String to GET request Parameter in Dart using standard library. You can use Uri.http(s) which wrap everythings (query, host, and path) together and encode them accordingly.
1 | final uri = new Uri.http(config['API_ENDPOINT'], '/search', {"query": queryToSearch}); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.