get method
Performs a GET request with optional caching.
uri: The URI path to request (appended to baseUrl)headers: Optional HTTP headers for the requestqueryParams: Optional query parameters to add to the URLcacheResult: Whether to cache the response (default: true)
Returns a Future that completes with the Response.
Implementation
Future<http.Response> get(String uri,
{Map<String, String>? headers,
Map<String, String>? queryParams,
bool cacheResult = true}) async {
return _handleRequest(
method: REQUEST_METHODS.GET,
uri: uri,
headers: headers,
queryParams: queryParams,
cacheResult: cacheResult,
);
}