sendLink method

void sendLink(
  1. String email
)

Sends a link to the email.

Implementation

void sendLink(String email) {
  authListener.onBeforeLinkSent(email);

  final future = auth.sendSignInLinkToEmail(
    email: email,
    actionCodeSettings: actionCodeSettings,
  );

  future
      .then((_) => authListener.onLinkSent(email))
      .catchError(authListener.onError);
}