addHeader method

Map<String, dynamic> addHeader(
  1. String key,
  2. dynamic value
)

Add a new header value to the request headers.

Implementation

Map<String, dynamic> addHeader(String key, dynamic value) {
  this[key] = value;
  return this;
}