SmartSearchBottomSheetConfig class

Configuration for the bottom sheet search appearance.

Constructors

SmartSearchBottomSheetConfig({String? title, Widget titleBuilder(int selectedCount)?, String confirmText = 'Done', String cancelText = 'Cancel', bool showConfirmButton = true, bool showCancelButton = true, bool showSelectedCount = true, bool showClearAllButton = true, String clearAllText = 'Clear All', double heightFactor = 0.85, BorderRadius borderRadius = const BorderRadius.vertical(top: Radius.circular(16)), Color? backgroundColor, Color? barrierColor, bool enableDrag = true, bool isScrollControlled = true, bool useSafeArea = true, bool showDragHandle = true})
const

Properties

backgroundColor Color?
Background color for the bottom sheet.
final
barrierColor Color?
Barrier color behind the bottom sheet.
final
borderRadius BorderRadius
Border radius for the bottom sheet.
final
cancelText String
Text for the cancel button.
final
clearAllText String
Text for the clear all button.
final
confirmText String
Text for the confirm button.
final
enableDrag bool
Whether the bottom sheet can be dragged.
final
hashCode int
The hash code for this object.
no setterinherited
heightFactor double
Height factor for the bottom sheet (0.0 to 1.0).
final
isScrollControlled bool
Whether the bottom sheet should be scrollable.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCancelButton bool
Whether to show the cancel button.
final
showClearAllButton bool
Whether to show the clear all button.
final
showConfirmButton bool
Whether to show the confirm button.
final
showDragHandle bool
Whether to show the drag handle.
final
showSelectedCount bool
Whether to show the selected count in the title.
final
title String?
Title for the bottom sheet.
final
titleBuilder Widget Function(int selectedCount)?
Builder for custom title widget.
final
useSafeArea bool
Whether to use safe area.
final

Methods

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}) SmartSearchBottomSheetConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited