how to get user firebase flutter code example
Example 1: getting uid of user firebase flutter
final FirebaseUser user = await auth.currentUser();
final userid = user.uid;
Example 2: how to sign out user in flutter with firebase authentication
final FirebaseAuth _auth = FirebaseAuth.instance;
Future<void> _signOut() async {
await _auth.signOut();
await _googleSignIn.signOut();
}