RequestOption constructor

RequestOption({
  1. Map<String, dynamic>? header,
  2. String? audience = '',
  3. String contentType = 'application/json',
  4. String method = 'get',
  5. String body = '',
})

Implementation

RequestOption({
  Map<String, dynamic>? header,
  this.audience = '',
  this.contentType = 'application/json',
  this.method = 'get',
  this.body = '',
}) : headers = header ?? {};