copyWith method

ComicTypeface copyWith({
  1. String? display,
  2. String? text,
  3. @Deprecated(_scaleGone) double? scale,
  4. double? displayCapHeight,
  5. double? textCapHeight,
})

This with the named parts changed.

Implementation

ComicTypeface copyWith({
  String? display,
  String? text,
  @Deprecated(_scaleGone) double? scale,
  double? displayCapHeight,
  double? textCapHeight,
}) => ComicTypeface(
  display: display ?? this.display,
  text: text ?? this.text,
  displayPackage: displayPackage,
  textPackage: textPackage,
  scale: scale ?? this.scale,
  displayCapHeight: displayCapHeight ?? this.displayCapHeight,
  textCapHeight: textCapHeight ?? this.textCapHeight,
);