headers property

  1. @override
Map<String, String>? get headers
override

Headers for the request. Always accepts any content type.

Implementation

@override
Map<String, String>? get headers {
  return {
    "accept": "*/*",
    if (NominatimConfiguration.userAgent != null)
      "User-Agent": NominatimConfiguration.userAgent ?? '',
  };
}