copyWith method
PdfRect
copyWith({
- @Deprecated('Use left instead') double? x,
- double? left,
- @Deprecated('Use bottom instead') double? y,
- double? bottom,
- double? width,
- double? height,
Returns a copy with the provided values replaced.
Implementation
PdfRect copyWith({
@Deprecated('Use left instead') double? x,
double? left,
@Deprecated('Use bottom instead') double? y,
double? bottom,
double? width,
double? height,
}) {
return PdfRect(
left ?? x ?? this.left,
bottom ?? y ?? this.bottom,
width ?? this.width,
height ?? this.height,
);
}