updateEmail method
Implementation
Future<void> updateEmail(String emailAddress) async {
if (emailAddress.isEmpty) return;
if (currentUser == null) return;
if (emailAddress.isValidEmailRegex) {
await currentUser!.updateEmail(emailAddress);
}
}