copyWith method

CPDFEditorTextAttr copyWith({
  1. Color? fontColor,
  2. double? fontColorAlpha,
  3. double? fontSize,
  4. String? familyName,
  5. String? styleName,
  6. CPDFAlignment? alignment,
})

Implementation

CPDFEditorTextAttr copyWith({
  Color? fontColor,
  double? fontColorAlpha,
  double? fontSize,
  String? familyName,
  String? styleName,
  CPDFAlignment? alignment,
}) {
  return CPDFEditorTextAttr(
      fontColor: fontColor ?? this.fontColor,
      fontColorAlpha: fontColorAlpha ?? this.fontColorAlpha,
      fontSize: fontSize ?? this.fontSize,
      familyName: familyName ?? this.familyName,
      styleName: styleName ?? this.styleName,
      alignment: alignment ?? this.alignment);
}