copyWith method

SmartSearchOverlayConfig copyWith({
  1. OverlayPosition? position,
  2. double? maxHeight,
  3. double? maxWidth,
  4. double? offset,
  5. double? borderRadius,
  6. double? elevation,
  7. Color? barrierColor,
  8. bool? barrierDismissible,
  9. Duration? animationDuration,
  10. BoxConstraints? constraints,
})

Implementation

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