getUserEmail method

Future<String?> getUserEmail()

The signed-in user's email (restores the session if needed).

Implementation

Future<String?> getUserEmail() async {
  final account = await _ensureSessionRestored();
  return account?.email;
}