header method

DioUtils header(
  1. String key,
  2. String value
)

Implementation

DioUtils header(String key, String value) {
  _headerMap ??= <String, String>{};
  _headerMap!.putIfAbsent(key, () => value);
  return this;
}