addBearerToken method

Map<String, dynamic> addBearerToken(
  1. String token
)

Add a bearer token to the request headers.

Implementation

Map<String, dynamic> addBearerToken(String token) {
  this['Authorization'] = "Bearer $token";
  return this;
}