getUser method
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;
}
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;
}