setHeaders method

dynamic setHeaders(
  1. Map<String, dynamic> headers
)

Set new headers to the baseOptions variable.

Implementation

setHeaders(Map<String, dynamic> headers) {
  _api.options.headers.addAll(headers);
}