IGoogleSignInAccount constructor

IGoogleSignInAccount(
  1. IGoogleSignInUserData data, {
  2. IGoogleSignInAccount? currentUser,
  3. required Future<IGoogleSignInTokenData> getTokens({
    1. required String email,
    2. bool? shouldRecoverAuth,
    }),
  4. required Future<void> onClearAuthCache({
    1. required String token,
    }),
})

Implementation

IGoogleSignInAccount(
  IGoogleSignInUserData data, {
  this.currentUser,
  required this.getTokens,
  required this.onClearAuthCache,
})  : displayName = data.displayName,
      email = data.email,
      id = data.id,
      photoUrl = data.photoUrl,
      serverAuthCode = data.serverAuthCode;