addHeader method

RequestBuilder addHeader(
  1. String key,
  2. dynamic value
)

Implementation

RequestBuilder addHeader(String key, dynamic value) {
  _headers ??= HashMap<String, dynamic>();
  _headers![key] = value;
  return this;
}