addHeader static method

void addHeader(
  1. Map<String, dynamic> header
)

will auto override the same header

Implementation

static void addHeader(Map<String, dynamic> header) {
  _dio?.options.headers.addAll(header);
}