setHeader method

void setHeader(
  1. String name,
  2. dynamic value
)

Implementation

void setHeader(String name, dynamic value) {
  _headers[utils.headerize(name)] =
      (value is List) ? value : <dynamic>[value];
}