getInBg method

  1. @override
Future<Map<String, dynamic>> getInBg(
  1. String endPoint,
  2. Map<String, dynamic> headers
)
override

Sends a GET request in the background.

This method retrieves data from the specified API endpoint and processes the request asynchronously.

endPoint - The API endpoint from which to retrieve data. headers - The request headers to send with the request.

Returns a Future containing a Map<String, dynamic> that represents the response data from the API.

Implementation

@override

/// Sends a GET request in the background.
///
/// This method retrieves data from the specified API endpoint
/// and processes the request asynchronously.
///
/// [endPoint] - The API endpoint from which to retrieve data.
/// [headers] - The request headers to send with the request.
///
/// Returns a [Future] containing a [Map<String, dynamic>]
/// that represents the response data from the API.
Future<Map<String, dynamic>> getInBg(
    String endPoint, Map<String, dynamic> headers) async {
  return _getInBg(endPoint, headers);
}