PdfRect copyWith({ double? x, double? y, double? width, double? height, }) { return PdfRect( x ?? this.x, y ?? this.y, width ?? this.width, height ?? this.height, ); }