getUserByID method

Future<void> getUserByID(
  1. String id
)

Implementation

Future<void> getUserByID(String id) async {
  await AmityCoreClient.newUserRepository().getUser(id).then((user) {
    log("IsGlobalban: ${user.isGlobalBan}");
  }).onError((error, stackTrace) async {
    log(error.toString());
    await AmityDialog()
        .showAlertErrorDialog(title: "Error!", message: error.toString());
  });
}