itemBuilder property

ZegoMemberListItemBuilder? itemBuilder
getter/setter pair

Custom member list item view.

For example, suppose you have implemented a CustomMemberListItem component that can render a member list item view based on the user information. You can set it up like this:

ZegoLiveAudioRoomMemberListConfig(
  itemBuilder: (BuildContext context, Size size, ZegoUIKitUser user, Map<String, dynamic> extraInfo) {
    return CustomMemberListItem(user: user);
  },
);

In this example, we pass the builder function of the custom view, CustomMemberListItem, to the itemBuilder property so that the member list item will be rendered using the custom component.

Implementation

ZegoMemberListItemBuilder? itemBuilder;