headers property

Map<String, String>? get headers

Implementation

Map<String, String>? get headers {
  final headers = <String, String>{};
  headers.addAll(_header);
  if (token.isNotEmpty && includeAuthorization) headers.addAll(token);
  if (isEncoded) {
    headers["content-Type"] = 'application/x-www-form-urlencoded';
  }
  if (_acceptedLanguage.isNotEmpty && includeLocalization) {
    headers.addAll(_acceptedLanguage);
  }
  return headers;
}