copyWith method
ContactsViewArguments
copyWith({
- ContactListViewController? controller,
- ChatUIKitAppBarModel? appBarModel,
- void onSearchTap(
- List<
ContactItemModel> data
- List<
- ChatUIKitContactItemBuilder? itemBuilder,
- void onTap(
- BuildContext context,
- ContactItemModel model
- void onLongPress(
- BuildContext context,
- ContactItemModel model
- String? searchHideText,
- Widget? listViewBackground,
- String? loadErrorMessage,
- bool? enableSearchBar,
- bool? enableAppBar,
- ChatUIKitViewObserver? viewObserver,
- String? attributes,
- Widget? appBarLeading,
- String? universalAlphabetical,
- String? sortAlphabetical,
- bool? enableSorting,
- bool? showAlphabeticalIndicator,
- dynamic onSelectLetterChanged(
- BuildContext context,
- String? letter
- ChatUIKitAppBarActionsBuilder? appBarTrailingActionsBuilder,
Implementation
ContactsViewArguments copyWith({
ContactListViewController? controller,
ChatUIKitAppBarModel? appBarModel,
void Function(List<ContactItemModel> data)? onSearchTap,
ChatUIKitContactItemBuilder? itemBuilder,
void Function(BuildContext context, ContactItemModel model)? onTap,
void Function(BuildContext context, ContactItemModel model)? onLongPress,
String? searchHideText,
Widget? listViewBackground,
String? loadErrorMessage,
bool? enableSearchBar,
bool? enableAppBar,
ChatUIKitViewObserver? viewObserver,
String? attributes,
Widget? appBarLeading,
String? universalAlphabetical,
String? sortAlphabetical,
bool? enableSorting,
bool? showAlphabeticalIndicator,
Function(BuildContext context, String? letter)? onSelectLetterChanged,
ChatUIKitAppBarActionsBuilder? appBarTrailingActionsBuilder,
}) {
return ContactsViewArguments(
controller: controller ?? this.controller,
appBarModel: appBarModel ?? this.appBarModel,
enableSearchBar: enableSearchBar ?? this.enableSearchBar,
onSearchTap: onSearchTap ?? this.onSearchTap,
itemBuilder: itemBuilder ?? this.itemBuilder,
onTap: onTap ?? this.onTap,
onLongPress: onLongPress ?? this.onLongPress,
searchHideText: searchHideText ?? this.searchHideText,
listViewBackground: listViewBackground ?? this.listViewBackground,
loadErrorMessage: loadErrorMessage ?? this.loadErrorMessage,
enableAppBar: enableAppBar ?? this.enableAppBar,
viewObserver: viewObserver ?? this.viewObserver,
onSelectLetterChanged:
onSelectLetterChanged ?? this.onSelectLetterChanged,
universalAlphabetical:
universalAlphabetical ?? this.universalAlphabetical,
sortAlphabetical: sortAlphabetical ?? this.sortAlphabetical,
enableSorting: enableSorting ?? this.enableSorting,
showAlphabeticalIndicator:
showAlphabeticalIndicator ?? this.showAlphabeticalIndicator,
attributes: attributes ?? this.attributes,
);
}