getCurrentUser method

  1. @override
Future<ChatUserModel?> getCurrentUser()

Retrieves the current user. This is the user that is currently logged in.

Implementation

@override
Future<ChatUserModel?> getCurrentUser() async =>
    _currentUser == null && _auth.currentUser?.uid != null
        ? _currentUser = await getUser(_auth.currentUser!.uid)
        : _currentUser;