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