getFromUser method

Future<NIMUser?> getFromUser()

Implementation

Future<NIMUser?> getFromUser() async {
  if (fromAccount == null) {
    return null;
  } else {
    var userResult =
        await NimCore.instance.userService.getUserInfo(fromAccount!);
    return userResult.data;
  }
}