MockGoogleSignIn class
Properties
-
clientId
→ String?
-
Client ID being used to connect to google sign-in.
finalinherited
-
currentUser
→ GoogleSignInAccount?
-
The currently signed in account, or null if the user is signed out.
no setteroverride
-
forceCodeForRefreshToken
→ bool
-
Force the authorization code to be valid for a refresh token every time. Only needed on Android.
finalinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hostedDomain
→ String?
-
Domain to restrict sign-in to.
finalinherited
-
onCurrentUserChanged
→ Stream<GoogleSignInAccount?>
-
Subscribe to this stream to be notified when the current user changes.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
→ List<String>
-
The list of scopes are OAuth scope codes requested when signing in.
finalinherited
-
serverClientId
→ String?
-
Client ID of the backend server to which the app needs to authenticate
itself.
finalinherited
-
signInOption
→ SignInOption
-
Option to determine the sign in user experience.
SignInOption.games
is
only supported on Android.
finalinherited
Methods
-
disconnect()
→ Future<GoogleSignInAccount?>
-
Disconnects the current user from the app and revokes previous
authentication.
inherited
-
isSignedIn()
→ Future<bool>
-
Returns a future that resolves to whether a user is currently signed in.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
override
-
requestScopes(List<String> scopes)
→ Future<bool>
-
Requests the user grants additional Oauth
scopes
.
inherited
-
setIsCancelled(bool val)
→ void
-
Used to simulate google login cancellation behaviour.
-
signIn()
→ Future<GoogleSignInAccount?>
-
Starts the interactive sign-in process.
override
-
signInSilently({bool suppressErrors = true, bool reAuthenticate = false})
→ Future<GoogleSignInAccount?>
-
Attempts to sign in a previously authenticated user without interaction.
inherited
-
signOut()
→ Future<GoogleSignInAccount?>
-
Marks current user as being in the signed out state.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited