setBearerToken method

dynamic setBearerToken(
  1. String bearerToken
)
inherited

Set a bearer token headers to the baseOptions variable.

Implementation

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