getUser method

  1. @override
Future<ChatUserModel?> getUser(
  1. String id
)
override

Retrieves a user based on the ID.

Implementation

@override
Future<ChatUserModel?> getUser(String id) {
  var user = users.firstWhere((element) => element.id == id);
  return Future.value(user);
}