GoogleSignInParams constructor

const GoogleSignInParams({
  1. Duration timeout = const Duration(minutes: 1),
  2. Future<void> saveAccessToken(
    1. String
    ) = _defaultSaveAccessToken,
  3. Future<String?> retrieveAccessToken() = _defaultRetrieveAccessToken,
  4. Future<void> deleteAccessToken() = _defaultDeleteAccessToken,
  5. List<String> scopes = const ['https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email'],
  6. int redirectPort = 8000,
  7. String? clientId,
  8. String? clientSecret,
  9. 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,
});