copyWith method
Creates a copy with some fields modified
Implementation
ParagraphStyle copyWith({
String? name,
String? displayName,
String? fontFamily,
double? fontSize,
List<String>? styles,
String? color,
String? highlightColor,
String? textAlign,
double? lineHeight,
double? spacingBefore,
double? spacingAfter,
int? indent,
}) {
return ParagraphStyle(
name: name ?? this.name,
displayName: displayName ?? this.displayName,
fontFamily: fontFamily ?? this.fontFamily,
fontSize: fontSize ?? this.fontSize,
styles: styles ?? this.styles,
color: color ?? this.color,
highlightColor: highlightColor ?? this.highlightColor,
textAlign: textAlign ?? this.textAlign,
lineHeight: lineHeight ?? this.lineHeight,
spacingBefore: spacingBefore ?? this.spacingBefore,
spacingAfter: spacingAfter ?? this.spacingAfter,
indent: indent ?? this.indent,
);
}