copyWith method
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,
);
}