isSignInWithEmailLink method Null safety

bool isSignInWithEmailLink(
  1. String emailLink
)

Checks if an incoming link is a sign-in with email link.

Implementation

bool isSignInWithEmailLink(String emailLink) {
  return (emailLink.contains('mode=signIn') ||
          emailLink.contains('mode%3DsignIn')) &&
      (emailLink.contains('oobCode=') || emailLink.contains('oobCode%3D'));
}