CometChatGroups constructor
const
CometChatGroups({
- Key? key,
- GroupsBloc? groupsBloc,
- GroupsBuilderProtocol? groupsProtocol,
- Widget? subtitleView(
- BuildContext context,
- Group group
- Widget listItemView(
- Group group
- CometChatGroupsStyle? groupsStyle,
- ScrollController? scrollController,
- String? searchPlaceholder,
- Widget? backButton,
- bool showBackButton = true,
- Widget? searchBoxIcon,
- bool hideSearch = false,
- SelectionMode? selectionMode,
- dynamic onSelection()?,
- String? title,
- GroupsRequestBuilder? groupsRequestBuilder,
- bool? hideError,
- WidgetBuilder? loadingStateView,
- WidgetBuilder? emptyStateView,
- WidgetBuilder? errorStateView,
- List<
Widget> appBarOptions(- BuildContext context
- Widget? passwordGroupIcon,
- Widget? privateGroupIcon,
- ActivateSelection? activateSelection,
- VoidCallback? onBack,
- dynamic onItemTap(
- BuildContext context,
- Group group
- dynamic onItemLongPress(
- BuildContext context,
- Group group
- OnError? onError,
- Widget? submitIcon,
- bool? hideAppbar = false,
- String? controllerTag,
- double? height,
- double? width,
- String? searchKeyword,
- OnLoad<
Group> ? onLoad, - OnEmpty? onEmpty,
- bool? groupTypeVisibility = true,
- List<
CometChatOption> ? setOptions(- Group group,
- GroupsBloc bloc,
- BuildContext context
- List<
CometChatOption> ? addOptions(- Group group,
- GroupsBloc bloc,
- BuildContext context
- Widget? titleView(
- BuildContext context,
- Group group
- Widget? leadingView(
- BuildContext context,
- Group group
- Widget? trailingView(
- BuildContext context,
- Group group
Implementation
const CometChatGroups({
super.key,
this.groupsBloc,
this.groupsProtocol,
this.subtitleView,
this.listItemView,
this.groupsStyle,
this.scrollController,
this.searchPlaceholder,
this.backButton,
this.showBackButton = true,
this.searchBoxIcon,
this.hideSearch = false,
this.selectionMode,
this.onSelection,
this.title,
this.groupsRequestBuilder,
this.hideError,
this.loadingStateView,
this.emptyStateView,
this.errorStateView,
this.appBarOptions,
this.passwordGroupIcon,
this.privateGroupIcon,
this.activateSelection,
this.onBack,
this.onItemTap,
this.onItemLongPress,
this.onError,
this.submitIcon,
this.hideAppbar = false,
this.controllerTag,
this.height,
this.width,
this.searchKeyword,
this.onLoad,
this.onEmpty,
this.groupTypeVisibility = true,
this.setOptions,
this.addOptions,
this.titleView,
this.leadingView,
this.trailingView,
});