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