GoogleAuthProvider class

Inheritance

Constructors

GoogleAuthProvider()
Creates a new GoogleAuthProvider.
factory
GoogleAuthProvider.fromJsObject(GoogleAuthProviderJsImpl jsObject)
Creates a new GoogleAuthProvider from a jsObject.

Properties

hashCode int
The hash code for this object.
no setterinherited
jsObject → GoogleAuthProviderJsImpl
JS object.
finalinherited
providerId String
Provider id.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addScope(String scope) GoogleAuthProvider
Adds additional OAuth 2.0 scopes that you want to request from the authentication provider.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCustomParameters(Map<String, dynamic> customOAuthParameters) GoogleAuthProvider
Sets the OAuth custom parameters to pass in a Google OAuth request for popup and redirect sign-in operations. Valid parameters include 'hd', 'hl', 'include_granted_scopes', 'login_hint' and 'prompt'. For a detailed list, check the Google documentation. Reserved required OAuth 2.0 parameters such as 'client_id', 'redirect_uri', 'scope', 'response_type' and 'state' are not allowed and ignored.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

PROVIDER_ID String
getter/setter pair

Static Methods

credential([String? idToken, String? accessToken]) OAuthCredential
Creates a credential for Google. At least one of idToken and accessToken is required.