sendVerificationEmail method
Future
sendVerificationEmail(
)
Implementation
Future sendVerificationEmail() async {
try {
final user = currentUser!;
await user.sendEmailVerification();
DialogView.showAlertDialog(
eors: 'S',
msg: 'msg_reset_password'.trParams({'yourEmail': user.email!}));
} on FirebaseAuthException catch (ex, trace) {
logCat(ex.code);
logCat(ex.message!);
logError(ex, trace: trace, position: 'FirebaseAuthException');
DialogView.showAlertDialog(eors: 'E', msg: ex.message!);
} on PlatformException catch (ex, trace) {
logError(ex, trace: trace, position: 'PlatformException');
logCat(ex.code);
logCat(ex.message!);
businessController.showDialogProgress(show: false);
DialogView.showAlertDialog(eors: 'E', msg: ex.message!);
} on Exception catch (ex, trace) {
logError(ex, trace: trace, position: 'signInWithEmailAndPassword');
}
businessController.showDialogProgress(show: false);
}