copyWith method
ConversationsViewArguments
copyWith({
- ConversationListViewController? controller,
- ChatUIKitAppBarModel? appBarModel,
- void onSearchTap(
- List<
ConversationItemModel> data
- List<
- List<
NeedAlphabeticalWidget> ? beforeWidgets, - List<
NeedAlphabeticalWidget> ? afterWidgets, - ChatUIKitListItemBuilder? itemBuilder,
- void onItemTap(
- BuildContext context,
- ConversationItemModel model
- ConversationsViewItemLongPressHandler? onItemLongPressHandler,
- String? searchBarHideText,
- Widget? emptyBackground,
- bool? enableAppBar,
- bool? enableSearchBar,
- ChatUIKitViewObserver? viewObserver,
- ChatUIKitMoreActionsBuilder? moreActionsBuilder,
- String? attributes,
- bool? enablePinHighlight,
- Widget? backgroundWidget,
Implementation
ConversationsViewArguments copyWith({
ConversationListViewController? controller,
ChatUIKitAppBarModel? appBarModel,
void Function(List<ConversationItemModel> data)? onSearchTap,
List<NeedAlphabeticalWidget>? beforeWidgets,
List<NeedAlphabeticalWidget>? afterWidgets,
ChatUIKitListItemBuilder? itemBuilder,
void Function(BuildContext context, ConversationItemModel model)? onItemTap,
ConversationsViewItemLongPressHandler? onItemLongPressHandler,
String? searchBarHideText,
Widget? emptyBackground,
bool? enableAppBar,
bool? enableSearchBar,
ChatUIKitViewObserver? viewObserver,
ChatUIKitMoreActionsBuilder? moreActionsBuilder,
String? attributes,
bool? enablePinHighlight,
Widget? backgroundWidget,
}) {
return ConversationsViewArguments(
controller: controller ?? this.controller,
appBarModel: appBarModel ?? this.appBarModel,
onSearchTap: onSearchTap ?? this.onSearchTap,
beforeWidgets: beforeWidgets ?? this.beforeWidgets,
afterWidgets: afterWidgets ?? this.afterWidgets,
itemBuilder: itemBuilder ?? this.itemBuilder,
onItemTap: onItemTap ?? this.onItemTap,
enableSearchBar: enableSearchBar ?? this.enableSearchBar,
onItemLongPressHandler:
onItemLongPressHandler ?? this.onItemLongPressHandler,
searchBarHideText: searchBarHideText ?? this.searchBarHideText,
emptyBackground: emptyBackground ?? this.emptyBackground,
enableAppBar: enableAppBar ?? this.enableAppBar,
viewObserver: viewObserver ?? this.viewObserver,
attributes: attributes ?? this.attributes,
moreActionsBuilder: moreActionsBuilder ?? this.moreActionsBuilder,
enablePinHighlight: enablePinHighlight ?? this.enablePinHighlight,
backgroundWidget: backgroundWidget ?? this.backgroundWidget,
);
}