copyWith method

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

Implementation

Rect copyWith({double? x, double? y, double? width, double? height}) =>
    Rect.fromXYWH(
      x ?? this.x,
      y ?? this.y,
      width ?? this.width,
      height ?? this.height,
    );