setAuthToken method

void setAuthToken(
  1. String token
)

Implementation

void setAuthToken(String token) {
  if (token != null)
    _headers["Authorization"] = "Bearer $token";
}