groupMembersProtocol | GroupMembersBuilderProtocol? | null | Supplies the group-member list yourself instead of letting the widget fetch it. |
subtitleView | Widget? Function(BuildContext context, GroupMember groupMember)? | null | Replaces the subtitle slot of each group member row. |
hideSeparator | bool? | null | hideSeparator toggle separator visibility |
listItemView | Widget Function(GroupMember groupMember)? | null | Replaces the entire group member row. Overrides the leading, title, subtitle and trailing slots. |
style | CometChatGroupMembersStyle? | null | Style object for this widget. The app ThemeData does not reach inside a kit widget, so scope colours here. |
controller | ScrollController? | null | Scroll controller for the list. |
searchPlaceholder | String? | null | searchPlaceholder placeholder text of search input |
backButton | Widget? | null | backButton back button |
showBackButton | bool | true | Toggle back button |
searchBoxIcon | Widget? | null | searchBoxIcon search box prefix icon |
hideSearch | bool | false | Toggle search bar |
selectionMode | SelectionMode? | null | Enable selection mode |
onSelection | Function(List<GroupMember>?)? | null | Called with the selected group members when selection mode is confirmed. |
stateCallBack | Function(CometChatGroupMembersController controller)? | null | Legacy stateCallBack — kept for backward compatibility. |
groupMembersRequestBuilder | GroupMembersRequestBuilder? | null | Request builder used to fetch the group members. |
hideError | bool? | null | hideError toggle visibility of error dialog |
loadingStateView | WidgetBuilder? | null | loadingStateView is a parameter used to show the loading state view in case of loading |
emptyStateView | WidgetBuilder? | null | emptyStateView returns view fow empty state |
errorStateView | WidgetBuilder? | null | errorStateView is a parameter used to show the error state view in case of any error |
appBarOptions | List<Widget>? | null | appBarOptions list of options to be visible in app bar |
options | List<CometChatOption>? Function( Group group, GroupMember member, CometChatGroupMembersController controller, BuildContext context, )? | null | Legacy options callback — kept for backward compatibility. |
group | Group | required | The group whose members to display |
trailingView | Function(BuildContext context, GroupMember groupMember)? | null | Replaces the trailing slot of each group member row. |
selectIcon | Widget? | null | Icon shown on a row while selection mode is active. |
submitIcon | Widget? | null | submitIcon will override the default submit icon |
onError | OnError? | null | Called when the list fails to load. |
onBack | VoidCallback? | null | onBack callback triggered on closing a screen |
onItemTap | Function(GroupMember groupMember)? | null | Called when a group member row is tapped. |
onItemLongPress | Function(GroupMember groupMember)? | null | Called when a group member row is long-pressed. |
activateSelection | ActivateSelection? | null | activateSelection lets the widget know if groups are allowed to be selected |
height | double? | null | height provides height to the widget |
width | double? | null | width provides width to the widget |
controllerTag | String? | null | Group tag to create from, if this is passed its parent responsibility to close this @deprecated Use groupsBloc parameter for external bloc injection |
hideAppbar | bool? | null | Toggle app bar visibility |
searchKeyword | String? | null | searchKeyword Used to set searchKeyword to fetch initial list with |
onLoad | OnLoad<GroupMember>? | null | Called once the first page of group members has loaded. |
onEmpty | OnEmpty? | null | Called when the group member list resolves with no results. |
setOptions | List<CometChatOption>? Function( Group group, GroupMember groupMember, CometChatGroupMembersController controller, BuildContext context, )? | null | Replaces the actions offered on a group member row. |
addOptions | List<CometChatOption>? Function( Group group, GroupMember groupMember, CometChatGroupMembersController controller, BuildContext context, )? | null | Appends to the actions offered on a group member row. |
leadingView | Widget? Function(BuildContext context, GroupMember groupMember)? | null | Replaces the leading slot of each group member row — the avatar area by default. |
titleView | Widget? Function(BuildContext context, GroupMember groupMember)? | null | Replaces the title slot of each group member row. |
hideBanMemberOption | bool? | null | Hide ban option in action menu |
hideKickMemberOption | bool? | null | Hide kick option in action menu |
hideScopeChangeOption | bool? | null | Hide scope change option |
usersStatusVisibility | bool? | true | Show online/offline status |