void bearerAuthorization=(String token)

Sets the Authorization header of this request.

Will apply the following header to this request:

    Authorization: Bearer token

Source

set bearerAuthorization(String token) {
  addHeader(HttpHeaders.AUTHORIZATION, "Bearer $token");
}