onBanMemberClicked method

  1. @override
dynamic onBanMemberClicked(
  1. Group group
)
override

Implementation

@override
onBanMemberClicked(Group group) {
  Navigator.push(
      context,
      MaterialPageRoute(
        builder: (context) => CometChatBannedMembers(
          group: group,
          theme: bannedMemberConfiguration?.theme ?? theme,
          backButton: bannedMemberConfiguration?.backButton,
          controller: bannedMemberConfiguration?.controller,
          listItemView: bannedMemberConfiguration?.childView,
          emptyStateText: bannedMemberConfiguration?.emptyStateText,
          errorStateText: bannedMemberConfiguration?.errorStateText,
          hideSearch: bannedMemberConfiguration?.hideSearch ?? true,
          hideSeparator: bannedMemberConfiguration?.hideSeparator,
          onSelection: bannedMemberConfiguration?.onSelection,
          searchBoxIcon: bannedMemberConfiguration?.searchBoxIcon,
          searchPlaceholder: bannedMemberConfiguration?.searchPlaceholder,
          selectionMode: bannedMemberConfiguration?.selectionMode,
          showBackButton: bannedMemberConfiguration?.showBackButton ?? true,
          bannedMembersStyle: bannedMemberConfiguration?.bannedMembersStyle ??
              const BannedMembersStyle(),
          title: bannedMemberConfiguration?.title,
          subtitleView: bannedMemberConfiguration?.subtitleView,
          avatarStyle: bannedMemberConfiguration?.avatarStyle,
          emptyStateView: bannedMemberConfiguration?.emptyStateView,
          errorStateView: bannedMemberConfiguration?.errorStateView,
          loadingStateView: bannedMemberConfiguration?.loadingStateView,
          hideError: bannedMemberConfiguration?.hideError,
          disableUsersPresence:
              bannedMemberConfiguration?.disableUsersPresence ?? false,
          statusIndicatorStyle:
              bannedMemberConfiguration?.statusIndicatorStyle,
          options: bannedMemberConfiguration?.options,
          activateSelection: bannedMemberConfiguration?.activateSelection,
          appBarOptions: bannedMemberConfiguration?.appBarOptions,
          bannedMemberProtocol:
              bannedMemberConfiguration?.bannedMemberProtocol,
          bannedMemberRequestBuilder:
              bannedMemberConfiguration?.bannedMemberRequestBuilder,
          listItemStyle: bannedMemberConfiguration?.listItemStyle,
          onBack: bannedMemberConfiguration?.onBack,
          onError: bannedMemberConfiguration?.onError ?? onError,
          onItemTap: bannedMemberConfiguration?.onItemTap,
          onItemLongPress: bannedMemberConfiguration?.onItemLongPress,
          unbanIconUrl: bannedMemberConfiguration?.unbanIconUrl,
          unbanIconUrlPackageName:
              bannedMemberConfiguration?.unbanIconUrlPackageName,
          stateCallBack: bannedMemberConfiguration?.stateCallBack,
        ),
      ));
}