fromUserId static method

NewRequestItemModel fromUserId(
  1. String userId, [
  2. String? reason
])

Implementation

static NewRequestItemModel fromUserId(String userId, [String? reason]) {
  ChatUIKitProfile profile = ChatUIKitProvider.instance.getProfile(
    ChatUIKitProfile.contact(id: userId),
  );
  return NewRequestItemModel(profile: profile, reason: reason);
}