MethodChannelGoogleSignIn class Null safety

An implementation of GoogleSignInPlatform that uses method channels.

Inheritance

Constructors

MethodChannelGoogleSignIn()

Properties

channel MethodChannel
This is only exposed for test purposes. It shouldn't be used by clients of the plugin as it may break or change at any time.
@visibleForTesting, read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
isMock bool
Only mock implementations should set this to true. [...]
@visibleForTesting, read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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({List<String> scopes = const <String>[], SignInOption signInOption = SignInOption.standard, String? hostedDomain, String? clientId}) Future<void>
Initializes the plugin. You must call this method before calling other methods. [...]
override
isSignedIn() Future<bool>
Returns whether the current user is currently signed in.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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