getUserId static method

String getUserId()

Get logged in user id if user is not logged in this method will Through AmityException

Implementation

static String getUserId() {
  return getCurrentUser().userId!;
}