copyWith method
SmartSearchOverlayConfig
copyWith({
- OverlayPosition? position,
- double? maxHeight,
- double? maxWidth,
- double? offset,
- double? borderRadius,
- double? elevation,
- Color? barrierColor,
- bool? barrierDismissible,
- Duration? animationDuration,
- OverlayAnimationType? animationType,
- Curve? animationCurve,
- BoxConstraints? constraints,
- bool? followTargetOnScroll,
Implementation
SmartSearchOverlayConfig copyWith({
OverlayPosition? position,
double? maxHeight,
double? maxWidth,
double? offset,
double? borderRadius,
double? elevation,
Color? barrierColor,
bool? barrierDismissible,
Duration? animationDuration,
OverlayAnimationType? animationType,
Curve? animationCurve,
BoxConstraints? constraints,
bool? followTargetOnScroll,
}) {
return SmartSearchOverlayConfig(
position: position ?? this.position,
maxHeight: maxHeight ?? this.maxHeight,
maxWidth: maxWidth ?? this.maxWidth,
offset: offset ?? this.offset,
borderRadius: borderRadius ?? this.borderRadius,
elevation: elevation ?? this.elevation,
barrierColor: barrierColor ?? this.barrierColor,
barrierDismissible: barrierDismissible ?? this.barrierDismissible,
animationDuration: animationDuration ?? this.animationDuration,
animationType: animationType ?? this.animationType,
animationCurve: animationCurve ?? this.animationCurve,
constraints: constraints ?? this.constraints,
followTargetOnScroll: followTargetOnScroll ?? this.followTargetOnScroll,
);
}