setHeaderValue method

void setHeaderValue(
  1. String name,
  2. String value
)

Sets the header with the specified key.

Implementation

void setHeaderValue(String name, String value) {
  _headers![name] = value;
}