copyWith method

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

Implementation

PRectangle copyWith({num? x, num? y, num? width, num? height}) => PRectangle(
    x ?? this.x, y ?? this.y, width ?? this.width, height ?? this.height);