get method
Sends a GET request to the specified url.
Implementation
Future<http.Response> get(
Uri url, {
Duration timeout = const Duration(seconds: 30),
Map<String, String>? headers,
}) async {
return await http
.get(url, headers: headers)
.handleExceptions(timeout: timeout);
}