token property

String get token

Google OAuth2 token

Implementation

String get token => _token;
set token (String v)

Implementation

set token(String v) {
  if (v.isEmpty) throw (_errorTokenIsEmpty);
  if (_token != v) {
    _token = v;
    var headers = lazy.Headers.gApis(_token);
    _httpClient.headers = headers;
    __driveApi = gd.DriveApi(_httpClient);
  }
}