copyWith method
SmartSearchBottomSheetConfig
copyWith({
- String? title,
- Widget titleBuilder(
- int selectedCount
- String? confirmText,
- String? cancelText,
- bool? showConfirmButton,
- bool? showCancelButton,
- bool? showSelectedCount,
- bool? showClearAllButton,
- String? clearAllText,
- double? heightFactor,
- BorderRadius? borderRadius,
- Color? backgroundColor,
- Color? barrierColor,
- bool? enableDrag,
- bool? isScrollControlled,
- bool? useSafeArea,
- bool? showDragHandle,
Implementation
SmartSearchBottomSheetConfig copyWith({
String? title,
Widget Function(int selectedCount)? titleBuilder,
String? confirmText,
String? cancelText,
bool? showConfirmButton,
bool? showCancelButton,
bool? showSelectedCount,
bool? showClearAllButton,
String? clearAllText,
double? heightFactor,
BorderRadius? borderRadius,
Color? backgroundColor,
Color? barrierColor,
bool? enableDrag,
bool? isScrollControlled,
bool? useSafeArea,
bool? showDragHandle,
}) {
return SmartSearchBottomSheetConfig(
title: title ?? this.title,
titleBuilder: titleBuilder ?? this.titleBuilder,
confirmText: confirmText ?? this.confirmText,
cancelText: cancelText ?? this.cancelText,
showConfirmButton: showConfirmButton ?? this.showConfirmButton,
showCancelButton: showCancelButton ?? this.showCancelButton,
showSelectedCount: showSelectedCount ?? this.showSelectedCount,
showClearAllButton: showClearAllButton ?? this.showClearAllButton,
clearAllText: clearAllText ?? this.clearAllText,
heightFactor: heightFactor ?? this.heightFactor,
borderRadius: borderRadius ?? this.borderRadius,
backgroundColor: backgroundColor ?? this.backgroundColor,
barrierColor: barrierColor ?? this.barrierColor,
enableDrag: enableDrag ?? this.enableDrag,
isScrollControlled: isScrollControlled ?? this.isScrollControlled,
useSafeArea: useSafeArea ?? this.useSafeArea,
showDragHandle: showDragHandle ?? this.showDragHandle,
);
}