Answers for "flutter limit http response time"

0

flutter limit http response time

final http.Response response = 
	  	await http.get(Uri.parse(URL_TO_FETCH_DATA))
		.timeout(const Duration(seconds: 5));
        
reference:
https://stackoverflow.com/questions/51487818/set-timeout-for-httpclient-get-request
Posted by: Guest on April-25-2021

Browse Popular Code Answers by Language