getSessionData method

Future<Map<String, String>> getSessionData(
  1. Map<String, String> headers, {
  2. bool passRawData = false,
  3. bool isMultiPart = false,
})

Implementation

Future<Map<String, String>> getSessionData(Map<String, String> headers,
    {bool passRawData = false, bool isMultiPart = false}) async {
  if (allHeaders != null && headers.isNotEmpty) {
    allHeaders!.addAll(headers);
  } else if (allHeaders == null && headers.isNotEmpty) {
    allHeaders = {};
    allHeaders!.addAll(headers);
  }
  return allHeaders ?? {};
}