GoogleSignInDart class
Implementation of the google_sign_in plugin in pure dart.
- Inheritance
-
- Object
- PlatformInterface
- GoogleSignInPlatform
- GoogleSignInDart
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMock → bool
-
Only mock implementations should set this to
true
.no setterinherited - presenter ↔ UrlPresenter
-
Used by the sign in flow to allow opening of a browser in a platform
specific way.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
userDataEvents
→ Stream<
GoogleSignInUserData?> ? -
Returns a stream of
GoogleSignInUserData
authentication events.no setterinherited
Methods
-
canAccessScopes(
List< String> scopes, {String? accessToken}) → Future<bool> -
Checks if the current user has granted access to all the specified
scopes
.inherited -
clearAuthCache(
{String? token}) → Future< void> -
Clears any cached information that the plugin may be holding on to.
override
-
disconnect(
) → Future< void> -
Revokes all of the scopes that the user granted.
override
-
getTokens(
{required String email, bool? shouldRecoverAuth = true}) → Future< GoogleSignInTokenData> -
Returns the Tokens used to authenticate other API calls.
override
-
init(
{String? hostedDomain, List< String> scopes = const <String>[], SignInOption signInOption = platform.SignInOption.standard, String? clientId}) → Future<void> -
Initializes the plugin. Deprecated: call initWithParams instead.
override
-
initWithParams(
SignInInitParameters params) → Future< void> -
Initializes the plugin with specified
params
. You must call this method before calling other methods.inherited -
isSignedIn(
) → Future< bool> -
Returns whether the current user is currently signed in.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestScopes(
List< String> scopes) → Future<bool> -
Requests the user grants additional Oauth
scopes
.override -
signIn(
) → Future< GoogleSignInUserData?> -
Signs in the user with the options specified to init.
override
-
signInSilently(
) → Future< GoogleSignInUserData?> -
Attempts to reuse pre-existing credentials to sign in again, without user interaction.
override
-
signOut(
) → Future< void> -
Signs out the current account from the application.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited