headers property

Map<String, String> headers
final

variable headers setting the content type and accept for the request

Implementation

final Map<String, String> headers = {
  'Content-type': 'application/json',
  'Accept': 'application/json',
};