final user = FirebaseAuth.instance.currentUser;
print(user);
if (user!.emailVerified) {
print('User is veryfied');
} else {
print('please verify');
}
Without it I get an error that says Property emailVerified cannot be accessed on User? because it is potentially null
but when I add ? this to avoid it
I get this error A value of type 'bool?' can't be assigned to a variable of type bool because 'bool?' is nullable and 'bool' isn't.