GoogleApi constructor

GoogleApi(
  1. String identifier,
  2. String clientId,
  3. String redirectUrl, {
  4. String clientSecret = "native",
  5. List<String>? scopes,
  6. Client? client,
  7. Converter? converter,
  8. AuthStorage? authStorage,
})

Implementation

GoogleApi(String identifier, String clientId, String redirectUrl,
    {String clientSecret = "native",
    List<String>? scopes,
    http.Client? client,
    Converter? converter,
    AuthStorage? authStorage})
    : super.fromIdAndSecret(
          identifier, _cleanseClientId(clientId), clientSecret,
          client: client,
          scopes: scopes,
          converter: converter,
          authStorage: authStorage) {
  this.tokenUrl = "https://accounts.google.com/o/oauth2/token";
  this.authorizationUrl = "https://accounts.google.com/o/oauth2/auth";
  this.redirectUrl = redirectUrl;
  this.scopes = scopes ??
      [
        "https://www.googleapis.com/auth/userinfo.email",
        "https://www.googleapis.com/auth/userinfo.profile"
      ];
}