getUser method

Future<AbstractChatUser> getUser(
  1. String id
)

Implementation

Future<AbstractChatUser> getUser(String id) async {
  if (userCache.containsKey(id)) {
    return userCache[id]!;
  }

  final user = await widget.provider.getUser(id);
  userCache[id] = user;
  return user;
}