getArrayRequest method
Sends a GET request to the given endPoint
and expects an array in the response.
This is an override that delegates the actual logic to a private _getArray
function.
endPoint
: API endpoint expected to return an array (e.g., list of items).headers
: HTTP headers to be included in the request.
Returns a Future containing the array response from the API.
Implementation
@override
Future<List<dynamic>> getArrayRequest({
required String endPoint,
required Map<String, dynamic> headers,
}) {
return _getArray(endPoint, headers);
}