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,
    }),
  5. required Future<IGoogleSignInAuthentication> authentication,
  6. required Future<Map<String, String>> authHeaders,
})

Implementation

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