getArrayInBg method

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

Fetches an array response from the given endPoint in a background-friendly manner.

This method is a lightweight wrapper around _apiManagerImpl.getArrayRequest, intended for use in background operations such as background isolates or services.

  • endPoint: The API endpoint expected to return an array.
  • headers: HTTP headers to include in the request.

Returns a Future that resolves to the array response from the API.

Implementation

Future<List<dynamic>> getArrayInBg({
  required String endPoint,
  required Map<String, dynamic> headers,
}) async =>
    _apiManagerImpl.getArrayRequest(endPoint: endPoint, headers: headers);