resolveUser method

Future<User?> resolveUser({
  1. bool force = false,
})

Represents a typing indicator in a channel.

Example:

client.events.typing((Typing typing) async {
  final user = await typing.resolveUser();

  print('${user?.username} is typing');
});

Parameters:

  • force Whether to force fetch the user from the API instead of cache. Defaults to false.

Implementation

Future<User?> resolveUser({bool force = false}) {
  return _datastore.user.get(userId.value, force);
}