copyWith method

PdfFontMetrics copyWith({
  1. double? left,
  2. double? top,
  3. double? right,
  4. double? bottom,
  5. double? ascent,
  6. double? descent,
  7. double? advanceWidth,
  8. double? leftBearing,
})

Make a copy of this object

Implementation

PdfFontMetrics copyWith({
  double? left,
  double? top,
  double? right,
  double? bottom,
  double? ascent,
  double? descent,
  double? advanceWidth,
  double? leftBearing,
}) {
  return PdfFontMetrics(
    left: left ?? this.left,
    top: top ?? this.top,
    right: right ?? this.right,
    bottom: bottom ?? this.bottom,
    ascent: ascent ?? this.ascent,
    descent: descent ?? this.descent,
    advanceWidth: advanceWidth ?? this.advanceWidth,
    leftBearing: leftBearing ?? this.leftBearing,
  );
}