CometChatGroupMembers class
CometChatGroupMembers displays all members of a Group as a list.
Migrated from GetX controller to BLoC architecture.
The widget now owns a GroupMembersBloc that is created in initState
and disposed in dispose, fixing the bug where onInit was never called
because the controller was created inside build() of a StatelessWidget.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CometChatGroupMembers
Constructors
-
CometChatGroupMembers({Key? key, GroupMembersBuilderProtocol? groupMembersProtocol, Widget? subtitleView(BuildContext context, GroupMember groupMember)?, bool? hideSeparator, Widget listItemView(GroupMember groupMember)?, CometChatGroupMembersStyle? style, ScrollController? controller, String? searchPlaceholder, Widget? backButton, bool showBackButton = true, Widget? searchBoxIcon, bool hideSearch = false, SelectionMode? selectionMode, dynamic onSelection(List<
GroupMember> ?)?, dynamic stateCallBack(CometChatGroupMembersController controller)?, GroupMembersRequestBuilder? groupMembersRequestBuilder, bool? hideError, WidgetBuilder? loadingStateView, WidgetBuilder? emptyStateView, WidgetBuilder? errorStateView, List<Widget> ? appBarOptions, List<CometChatOption> ? options(Group group, GroupMember member, CometChatGroupMembersController controller, BuildContext context)?, required Group group, dynamic trailingView(BuildContext context, GroupMember groupMember)?, Widget? selectIcon, Widget? submitIcon, OnError? onError, VoidCallback? onBack, dynamic onItemTap(GroupMember groupMember)?, dynamic onItemLongPress(GroupMember groupMember)?, ActivateSelection? activateSelection, double? height, double? width, String? controllerTag, bool? hideAppbar, String? searchKeyword, OnLoad<GroupMember> ? onLoad, OnEmpty? onEmpty, List<CometChatOption> ? setOptions(Group group, GroupMember member, CometChatGroupMembersController controller, BuildContext context)?, List<CometChatOption> ? addOptions(Group group, GroupMember member, CometChatGroupMembersController controller, BuildContext context)?, Widget? leadingView(BuildContext context, GroupMember groupMember)?, Widget? titleView(BuildContext context, GroupMember groupMember)?, bool? hideBanMemberOption, bool? hideKickMemberOption, bool? hideScopeChangeOption, bool? usersStatusVisibility = true}) -
const
Properties
- activateSelection → ActivateSelection?
-
final
-
addOptions
→ List<
CometChatOption> ? Function(Group group, GroupMember member, CometChatGroupMembersController controller, BuildContext context)? -
final
-
appBarOptions
→ List<
Widget> ? -
final
- backButton → Widget?
-
final
- controller → ScrollController?
-
final
- controllerTag → String?
-
final
- emptyStateView → WidgetBuilder?
-
final
- errorStateView → WidgetBuilder?
-
final
- group → Group
-
final
- groupMembersProtocol → GroupMembersBuilderProtocol?
-
final
- groupMembersRequestBuilder → GroupMembersRequestBuilder?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- hideAppbar → bool?
-
final
- hideBanMemberOption → bool?
-
final
- hideError → bool?
-
final
- hideKickMemberOption → bool?
-
final
- hideScopeChangeOption → bool?
-
final
- hideSearch → bool
-
final
- hideSeparator → bool?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leadingView → Widget? Function(BuildContext context, GroupMember groupMember)?
-
final
- listItemView → Widget Function(GroupMember groupMember)?
-
final
- loadingStateView → WidgetBuilder?
-
final
- onBack → VoidCallback?
-
final
- onEmpty → VoidCallback?
-
final
- onError → OnError?
-
final
- onItemLongPress → dynamic Function(GroupMember groupMember)?
-
final
- onItemTap → dynamic Function(GroupMember groupMember)?
-
final
-
onLoad
→ OnLoad<
GroupMember> ? -
final
-
onSelection
→ dynamic Function(List<
GroupMember> ?)? -
final
-
options
→ List<
CometChatOption> ? Function(Group group, GroupMember member, CometChatGroupMembersController controller, BuildContext context)? -
Legacy options callback — kept for backward compatibility.
Receives a CometChatGroupMembersController stub that delegates to the BLoC.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchBoxIcon → Widget?
-
final
- searchKeyword → String?
-
final
- searchPlaceholder → String?
-
final
- selectIcon → Widget?
-
final
- selectionMode → SelectionMode?
-
final
-
setOptions
→ List<
CometChatOption> ? Function(Group group, GroupMember member, CometChatGroupMembersController controller, BuildContext context)? -
final
- showBackButton → bool
-
final
- stateCallBack → dynamic Function(CometChatGroupMembersController controller)?
-
Legacy stateCallBack — kept for backward compatibility.
final
- style → CometChatGroupMembersStyle?
-
final
- submitIcon → Widget?
-
final
- subtitleView → Widget? Function(BuildContext context, GroupMember groupMember)?
-
final
- titleView → Widget? Function(BuildContext context, GroupMember groupMember)?
-
final
- trailingView → dynamic Function(BuildContext context, GroupMember groupMember)?
-
final
- usersStatusVisibility → bool?
-
final
- width → double?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CometChatGroupMembers> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited