GoogleProvider class
Constructors
Properties
- auth ↔ FirebaseAuth
-
The
FirebaseAuthinstance used to perform authentication against. By default,FirebaseAuth.instanceis used.getter/setter pairinherited - authListener ↔ OAuthListener
-
An instance of the
AuthListenerthat is used to notify about the current state of the authentication process.getter/setter pairinherited - clientId → String
-
The Google client ID.
Primarily required for desktop platforms.
Ignored on Android and iOS (if
iOSPreferPlistis true).final - defaultRedirectUri → String
-
no setterinherited
- desktopSignInArgs → ProviderArgs
-
latefinal
- firebaseAuthProvider → GoogleAuthProvider
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iOSPreferPlist → bool
-
When true, the Google Sign In plugin will use the GoogleService-Info.plist
for configuration instead of the
clientIdparameter.final - provider ↔ GoogleSignIn
-
getter/setter pair
- providerId → String
-
String identifer of the auth provider, for example:
'password','phone'or'google.com'.final - redirectUri → String?
-
The redirect URL to use for the Google Sign In plugin.
Required on desktop platforms.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
→ List<
String> ? -
The list of requested authorization scopes requested when signing in.
final
- shouldUpgradeAnonymous → bool
-
Indicates whether the user should be upgraded and new credential should be
linked.
no setterinherited
- style → ThemedOAuthProviderButtonStyle
-
An object that is being used to resolve a style of the button.
final
Methods
-
desktopSignIn(
AuthAction action) → void - Handles authentication logic on desktop platforms
-
fromDesktopAuthResult(
AuthResult result) → OAuthCredential -
Creates
OAuthCredentialbased onAuthResult. -
linkWithCredential(
OAuthCredential credential) → void -
Links a provided
AuthCredentialwith the currently signed in user account.inherited -
logOutProvider(
) → Future< void> -
mobileSignIn(
AuthAction action) → void - Handles authentication logic on mobile platforms.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onCredentialReceived(
OAuthCredential credential, AuthAction action) → void -
A method that is called when the user has successfully completed the
authentication process and decides what to do with the obtained
credential.inherited -
platformSignIn(
TargetPlatform platform, AuthAction action) → void -
Redirects the flow to the mobileSignIn or desktopSignIn based
on current platform.
inherited
-
signIn(
TargetPlatform platform, AuthAction action) → void -
inherited
-
signInWithCredential(
OAuthCredential credential) → void -
Signs the user in with the provided
AuthCredential.inherited -
supportsPlatform(
TargetPlatform platform) → bool -
Verifies that an
AuthProvideris supported on aplatform. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited