GoogleSignInParams class

This class contains all the parameters that might be needed for performing the google sign in operation

Constructors

GoogleSignInParams({Duration timeout = const Duration(minutes: 1), Future<void> saveAccessToken(String) = _defaultSaveAccessToken, Future<String?> retrieveAccessToken() = _defaultRetrieveAccessToken, Future<void> deleteAccessToken() = _defaultDeleteAccessToken, List<String> scopes = const ['https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email'], int redirectPort = 8000, String? clientId, String? clientSecret})
This class contains all the parameters that might be needed for performing the google sign in operation.
const

Properties

clientId String?
Required and Only used in case of Desktop.
final
clientSecret String?
Required and Only used in case of Desktop
final
deleteAccessToken Future<void> Function()
Only used in case of Desktop, where on signing out, we need to remove the already stored access token from the internal storage.
final
hashCode int
The hash code for this object.
no setterinherited
redirectPort int
Only used in case of Desktop, where on signing in, we need to provide a redirect localhost port, where the access code and more will be received.
final
retrieveAccessToken Future<String?> Function()
Only used in case of Desktop, where on signing in online, we need to retrieve the already stored access token from the internal storage.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveAccessToken Future<void> Function(String)
Only used in case of Desktop, where after receiving the token, we want to save the token locally.
final
scopes List<String>
Passed on to Google OAuth2.0 scopes parameter.
final
timeout Duration
Only used in case of Desktop, where we perform OAuth2.0 by opening the Google OAuth2.0 link in the default browser, this is the total time till we wait for the user to login, after this, the temporary server is closed, and user might have restart the whole process.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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