copyWith method

PdfRect copyWith({
  1. @Deprecated('Use left instead') double? x,
  2. double? left,
  3. @Deprecated('Use bottom instead') double? y,
  4. double? bottom,
  5. double? width,
  6. 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,
  );
}