addOrUpdateHeader method
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});