addOrUpdateHeader method

void addOrUpdateHeader({
  1. required String key,
  2. required String value,
})
override

Implementation

void addOrUpdateHeader({required String key, required String value}) =>
    _dio.options.headers.containsKey(key)
        ? _dio.options.headers.update(key, (v) => value)
        : _dio.options.headers.addAll({key: value});