In the drawer, I'm showing the user's email address. but null error is showing ! i am also adding ? this sign same error but null
final email = FirebaseAuth.instance.currentUser!.email;
Center(
child: Text(
'$email',
style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 18.0, color: Colors.indigo),
),
),
!is used when you are sure its not null. You have to either check the value is null or not before using the!operator or use?operator