CometChatBannedMembers constructor
CometChatBannedMembers({
- Key? key,
- required Group group,
- BannedMemberBuilderProtocol? bannedMemberProtocol,
- Widget? subtitleView()?,
- bool? hideSeparator = true,
- Widget listItemView()?,
- BannedMembersStyle bannedMembersStyle = const BannedMembersStyle(),
- List<
CometChatOption> ? options(- Group group,
- GroupMember member,
- CometChatBannedMembersController controller,
- BuildContext context,
- ScrollController? controller,
- CometChatTheme? theme,
- String? searchPlaceholder,
- Widget? backButton,
- bool showBackButton = true,
- Widget? searchBoxIcon,
- bool hideSearch = true,
- SelectionMode? selectionMode,
- dynamic onSelection()?,
- String? title,
- String? errorStateText,
- String? emptyStateText,
- dynamic stateCallBack(
- CometChatBannedMembersController controller
- BannedGroupMembersRequestBuilder? bannedMemberRequestBuilder,
- bool? hideError,
- WidgetBuilder? loadingStateView,
- WidgetBuilder? emptyStateView,
- WidgetBuilder? errorStateView,
- bool disableUsersPresence = true,
- AvatarStyle? avatarStyle,
- StatusIndicatorStyle? statusIndicatorStyle,
- List<
Widget> ? appBarOptions, - ListItemStyle? listItemStyle,
- OnError? onError,
- VoidCallback? onBack,
- dynamic onItemTap()?,
- dynamic onItemLongPress()?,
- ActivateSelection? activateSelection,
- String? unbanIconUrl,
- String? unbanIconUrlPackageName,
Implementation
CometChatBannedMembers(
{super.key,
required this.group,
this.bannedMemberProtocol,
this.subtitleView,
this.hideSeparator = true,
this.listItemView,
this.bannedMembersStyle = const BannedMembersStyle(),
this.options,
this.controller,
this.theme,
this.searchPlaceholder,
this.backButton,
this.showBackButton = true,
this.searchBoxIcon,
this.hideSearch = true,
this.selectionMode,
this.onSelection,
this.title,
this.errorStateText,
this.emptyStateText,
this.stateCallBack,
this.bannedMemberRequestBuilder,
this.hideError,
this.loadingStateView,
this.emptyStateView,
this.errorStateView,
this.disableUsersPresence = true,
this.avatarStyle,
this.statusIndicatorStyle,
this.appBarOptions,
this.listItemStyle,
OnError? onError,
this.onBack,
this.onItemTap,
this.onItemLongPress,
this.activateSelection,
String? unbanIconUrl,
String? unbanIconUrlPackageName})
: bannedMembersController = CometChatBannedMembersController(
bannedMemberBuilderProtocol: bannedMemberProtocol ??
UIBannedMemberBuilder(
bannedMemberRequestBuilder ??
BannedGroupMembersRequestBuilder(guid: group.guid),
),
mode: selectionMode,
theme: theme ?? cometChatTheme,
group: group,
disableUsersPresence: disableUsersPresence,
onError: onError,
unbanIconUrl: unbanIconUrl,
unbanIconUrlPackageName: unbanIconUrlPackageName);