copyWith method

TextRun copyWith({
  1. int? unicharCount,
  2. int? styleId,
  3. Object? userData,
  4. Font? font,
  5. double? fontSize,
  6. double? lineHeight,
  7. double? letterSpacing,
})

Implementation

TextRun copyWith({
  int? unicharCount,
  int? styleId,
  Object? userData,
  Font? font,
  double? fontSize,
  double? lineHeight,
  double? letterSpacing,
}) =>
    TextRun(
      font: font ?? this.font,
      fontSize: fontSize ?? this.fontSize,
      lineHeight: lineHeight ?? this.lineHeight,
      letterSpacing: letterSpacing ?? this.letterSpacing,
      unicharCount: unicharCount ?? this.unicharCount,
      styleId: styleId ?? this.styleId,
      userData: userData ?? this.userData,
    );