copyWith method
Creates a copy of this config with the given fields replaced with new values.
Implementation
FloatingPanelConfig copyWith({
double? width,
double? height,
double? x,
double? y,
}) {
return FloatingPanelConfig(
width: width ?? this.width,
height: height ?? this.height,
x: x ?? this.x,
y: y ?? this.y,
);
}