SmartSearchOverlayConfig class

Configuration for the search overlay appearance and behavior.

Constructors

SmartSearchOverlayConfig({OverlayPosition position = OverlayPosition.auto, double maxHeight = 300.0, double? maxWidth, double offset = 4.0, double borderRadius = 8.0, double elevation = 8.0, Color? barrierColor, bool barrierDismissible = true, Duration animationDuration = const Duration(milliseconds: 200), BoxConstraints? constraints})
const

Properties

animationDuration Duration
Duration of the show/hide animation.
final
barrierColor Color?
Color of the barrier behind the overlay. If null, no barrier is shown.
final
barrierDismissible bool
Whether tapping the barrier dismisses the overlay.
final
borderRadius double
Border radius of the overlay.
final
constraints BoxConstraints?
Additional constraints for the overlay.
final
elevation double
Elevation/shadow of the overlay.
final
hashCode int
The hash code for this object.
no setterinherited
maxHeight double
Maximum height of the overlay.
final
maxWidth double?
Maximum width of the overlay. If null, uses the search box width.
final
offset double
Gap between search box and overlay.
final
position OverlayPosition
Preferred position for the overlay.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({OverlayPosition? position, double? maxHeight, double? maxWidth, double? offset, double? borderRadius, double? elevation, Color? barrierColor, bool? barrierDismissible, Duration? animationDuration, BoxConstraints? constraints}) SmartSearchOverlayConfig
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