CometChatBannedMembers constructor

CometChatBannedMembers({
  1. Key? key,
  2. required Group group,
  3. BannedMemberBuilderProtocol? bannedMemberProtocol,
  4. Widget? subtitleView(
    1. GroupMember
    )?,
  5. bool? hideSeparator = true,
  6. Widget listItemView(
    1. GroupMember
    )?,
  7. BannedMembersStyle bannedMembersStyle = const BannedMembersStyle(),
  8. List<CometChatOption>? options(
    1. Group group,
    2. GroupMember member,
    3. CometChatBannedMembersController controller,
    4. BuildContext context,
    )?,
  9. ScrollController? controller,
  10. CometChatTheme? theme,
  11. String? searchPlaceholder,
  12. Widget? backButton,
  13. bool showBackButton = true,
  14. Widget? searchBoxIcon,
  15. bool hideSearch = true,
  16. SelectionMode? selectionMode,
  17. dynamic onSelection(
    1. List<GroupMember>?
    )?,
  18. String? title,
  19. String? errorStateText,
  20. String? emptyStateText,
  21. dynamic stateCallBack(
    1. CometChatBannedMembersController controller
    )?,
  22. BannedGroupMembersRequestBuilder? bannedMemberRequestBuilder,
  23. bool? hideError,
  24. WidgetBuilder? loadingStateView,
  25. WidgetBuilder? emptyStateView,
  26. WidgetBuilder? errorStateView,
  27. bool disableUsersPresence = true,
  28. AvatarStyle? avatarStyle,
  29. StatusIndicatorStyle? statusIndicatorStyle,
  30. List<Widget>? appBarOptions,
  31. ListItemStyle? listItemStyle,
  32. OnError? onError,
  33. VoidCallback? onBack,
  34. dynamic onItemTap(
    1. User
    )?,
  35. dynamic onItemLongPress(
    1. User
    )?,
  36. ActivateSelection? activateSelection,
  37. String? unbanIconUrl,
  38. 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);