ZegoCallMemberListConfig class

Configuration for the member list. You can use the ZegoUIKitPrebuiltCallConfig.memberList property to set the properties inside this class.

If you want to use a custom member list item view, you can set the itemBuilder property in ZegoCallMemberListConfig and pass your custom view's builder function to it. 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:

ZegoCallMemberListConfig( showMicrophoneState: true, showCameraState: false, itemBuilder: (BuildContext context, Size size, ZegoUIKitUser user, Map<String, dynamic> extraInfo) { return CustomMemberListItem(user: user); }, );

In this example, we set showMicrophoneState to true, so the microphone state will be displayed in the member list item. showCameraState is set to false, so the camera state will not be displayed. Finally, 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.

Constructors

ZegoCallMemberListConfig({bool showMicrophoneState = true, bool showCameraState = true, ZegoMemberListItemBuilder? itemBuilder})

Properties

hashCode int
The hash code for this object.
no setterinherited
itemBuilder ZegoMemberListItemBuilder?
Custom member list item view.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCameraState bool
Whether to show the camera state of the member. Defaults to true, which means it will be shown.
getter/setter pair
showMicrophoneState bool
Whether to show the microphone state of the member. Defaults to true, which means it will be shown.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited