copyWith method

SmartSearchBottomSheetConfig copyWith({
  1. String? title,
  2. Widget titleBuilder(
    1. int selectedCount
    )?,
  3. String? confirmText,
  4. String? cancelText,
  5. bool? showConfirmButton,
  6. bool? showCancelButton,
  7. bool? showSelectedCount,
  8. bool? showClearAllButton,
  9. String? clearAllText,
  10. double? heightFactor,
  11. BorderRadius? borderRadius,
  12. Color? backgroundColor,
  13. Color? barrierColor,
  14. bool? enableDrag,
  15. bool? isScrollControlled,
  16. bool? useSafeArea,
  17. 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,
  );
}