getArrayRequest method

  1. @override
Future<List> getArrayRequest({
  1. required String endPoint,
  2. required Map<String, dynamic> headers,
})
override

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);
}