copyWith method

DeltaAttributesOptions copyWith({
  1. double? fontSize,
  2. bool? bold,
  3. bool? italic,
  4. bool? underline,
  5. bool? automaticIndent,
  6. String? fontFamily,
  7. int? hexColor,
  8. int? hexBackgroundColor,
  9. double? lineSpacing,
  10. bool? strikethrough,
  11. String? link,
  12. String? align,
  13. int? indent,
})

Implementation

DeltaAttributesOptions copyWith({
  double? fontSize,
  bool? bold,
  bool? italic,
  bool? underline,
  bool? automaticIndent,
  String? fontFamily,
  int? hexColor,
  int? hexBackgroundColor,
  double? lineSpacing,
  bool? strikethrough,
  String? link,
  String? align,
  int? indent,
}) {
  return DeltaAttributesOptions(
    fontSize: fontSize ?? this.fontSize,
    strikethrough: strikethrough ?? this.strikethrough,
    indent: indent ?? this.indent,
    bold: bold ?? this.bold,
    italic: italic ?? this.italic,
    lineSpacing: lineSpacing ?? this.lineSpacing,
    hexBackgroundColor: hexBackgroundColor ?? this.hexBackgroundColor,
    underline: underline ?? this.underline,
    fontFamily: fontFamily ?? this.fontFamily,
    hexColor: hexColor ?? this.hexColor,
    align: align ?? this.align,
  );
}