copyWith method

FloatingPanelConfig copyWith({
  1. double? width,
  2. double? height,
  3. double? x,
  4. double? y,
})

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,
  );
}