merge method
Implementation
UsersConfiguration merge(UsersConfiguration mergeWith) {
return UsersConfiguration(
title: title ?? mergeWith.title,
chatAvatar: chatAvatar ?? mergeWith.chatAvatar,
chatConversationItem: chatConversationItem ?? mergeWith.chatConversationItem,
searchPlaceholder: searchPlaceholder ?? mergeWith.searchPlaceholder,
showBackButton: showBackButton ?? mergeWith.showBackButton,
hideSearch: hideSearch ?? mergeWith.hideSearch,
usersRequestBuilder:
usersRequestBuilder ?? mergeWith.usersRequestBuilder,
subtitleView: subtitleView ?? mergeWith.subtitleView,
hideSeparator: hideSeparator ?? mergeWith.hideSeparator,
listItemView: listItemView ?? mergeWith.listItemView,
usersStyle: usersStyle ?? mergeWith.usersStyle,
options: options ?? mergeWith.options,
backButton: backButton ?? mergeWith.backButton,
searchBoxIcon: searchBoxIcon ?? mergeWith.searchBoxIcon,
theme: theme ?? mergeWith.theme,
selectionMode: selectionMode ?? mergeWith.selectionMode,
onSelection: onSelection ?? mergeWith.onSelection,
emptyStateText: emptyStateText ?? mergeWith.emptyStateText,
errorStateText: errorStateText ?? mergeWith.errorStateText,
loadingStateView: loadingStateView ?? mergeWith.loadingStateView,
emptyStateView: emptyStateView ?? mergeWith.emptyStateView,
errorStateView: errorStateView ?? mergeWith.errorStateView,
listItemStyle: listItemStyle ?? mergeWith.listItemStyle,
avatarStyle: avatarStyle ?? mergeWith.avatarStyle,
statusIndicatorStyle:
statusIndicatorStyle ?? mergeWith.statusIndicatorStyle,
appBarOptions: appBarOptions ?? mergeWith.appBarOptions,
hideSectionSeparator:
hideSectionSeparator ?? mergeWith.hideSectionSeparator,
disableUsersPresence:
disableUsersPresence ?? mergeWith.disableUsersPresence,
activateSelection: activateSelection ?? mergeWith.activateSelection,
hideError: hideError ?? mergeWith.hideError,
stateCallBack: stateCallBack ?? mergeWith.stateCallBack,
controller: controller ?? mergeWith.controller,
usersProtocol: usersProtocol ?? mergeWith.usersProtocol,
onError: onError ?? mergeWith.onError,
onBack: onBack ?? mergeWith.onBack,
onItemTap: onItemTap ?? mergeWith.onItemTap,
onItemLongPress: onItemLongPress ?? mergeWith.onItemLongPress,
selectionIcon: selectionIcon ?? mergeWith.selectionIcon,
submitIcon: submitIcon ?? mergeWith.submitIcon,
controllerTag: controllerTag ?? mergeWith.controllerTag);
}