credential property
AuthCredential
get
credential
Implementation
AuthCredential get credential => switch (this) {
(GoogleSignInResult r) => GoogleAuthProvider.credential(
accessToken: r.accessToken,
idToken: r.idToken,
),
(AppleSignInResult r) => AppleAuthProvider.credentialWithIDToken(
r.idToken,
r.nonce,
AppleFullPersonName(
// TODO UNHANDLED
)),
(FacebookSignInResult r) =>
FacebookAuthProvider.credential(r.accessToken),
(MicrosoftSignInResult r) =>
MicrosoftAuthProvider.credential(r.accessToken),
_ => throw UnimplementedError(
"Unknown/Unhandled SocialSignInResultInterface ${runtimeType}")
};