setBearerToken method

dynamic setBearerToken(
  1. String bearerToken
)

Set a bearer token headers to the baseOptions variable.

Implementation

setBearerToken(String bearerToken) {
  _api.options.headers.addAll({"Authorization": "Bearer $bearerToken"});
}