updateEmail method

Future<void> updateEmail(
  1. String emailAddress
)

Implementation

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