currentUser property

User? get currentUser

Gets the currently authenticated Firebase user.

Returns: The current User object, or null if no user is signed in.

Implementation

User? get currentUser => _auth.currentUser;