GoogleSignIn class

Inheritance
Implementers

Constructors

GoogleSignIn({required String clientId, required String clientSecret, required String redirectUrl, required String scope})
GoogleSignIn.fromProfile(GoogleSignInConfig config)
Parameters required for web-based authentication flows
factory

Properties

clientId String
Google App Id. The client ID for your application.
getter/setter pairoverride
clientSecret String
Google APP Secret The client secret obtained from the API Console Credential page.
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
pageInfo SocialSignInPageInfo
getter/setter pairoverride
redirectUrl String
Google App's Redirect Url. Determines where the API server redirects the user after the user completes the authorization flow. The value must exactly match one of the authorized redirect URIs for the OAuth 2.0 Client, which you configured in your client's API Console Credentials page
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope String
Google Permissions Scopes enable your application to only request access to the resources that it needs while also enabling users to control the amount of access that they grant to your application.
getter/setter pairoverride
stateCode String
getter/setter pairinherited

Methods

authUrl() String
override
customStateCode() String?
inherited
exchangeAccessToken(String authorizationCode) Future<SocialSignInResultInterface>
Your server should then daily verify the session with Google, and revoke the session in your system if the authorization has been withdrawn on Google's side.
override
generateNonce([int length = 32]) String
inherited
generateString([int length = 32, String charset = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890']) String
inherited
handleResponseBodyFail(Map<String, dynamic> body) Exception
The error will be thrown when the token exchange fails.
inherited
handleUnSuccessCodeFail(Response response) Exception
The error will be thrown when the token exchange fails.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signIn(BuildContext context) Future<SocialSignInResultInterface>
Default signIn with webView flow
inherited
signInWithWebView(BuildContext context) Future
override
toString() String
A string representation of this object.
inherited

Operators

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