copyWith method
- TextStyle? textStyle,
- List<
TextStyle?> ? headingStyle, - TextStyle? codeStyle,
- Color? codeBackground,
- Color? codeblockBackground,
- EdgeInsetsGeometry? codeblockPadding,
- Decoration? blockquoteDecoration,
- EdgeInsetsGeometry? blockquotePadding,
- TableBorder? tableBorder,
- Color? tableHeaderBackground,
- TextStyle? linkStyle,
- EdgeInsetsGeometry? listPadding,
- double? horizontalRuleThickness,
- Color? horizontalRuleColor,
Returns a copy of this style with the given fields replaced.
Implementation
PrismMarkdownStyle copyWith({
TextStyle? textStyle,
List<TextStyle?>? headingStyle,
TextStyle? codeStyle,
Color? codeBackground,
Color? codeblockBackground,
EdgeInsetsGeometry? codeblockPadding,
Decoration? blockquoteDecoration,
EdgeInsetsGeometry? blockquotePadding,
TableBorder? tableBorder,
Color? tableHeaderBackground,
TextStyle? linkStyle,
EdgeInsetsGeometry? listPadding,
double? horizontalRuleThickness,
Color? horizontalRuleColor,
}) {
return PrismMarkdownStyle(
textStyle: textStyle ?? this.textStyle,
headingStyle: headingStyle ?? this.headingStyle,
codeStyle: codeStyle ?? this.codeStyle,
codeBackground: codeBackground ?? this.codeBackground,
codeblockBackground: codeblockBackground ?? this.codeblockBackground,
codeblockPadding: codeblockPadding ?? this.codeblockPadding,
blockquoteDecoration: blockquoteDecoration ?? this.blockquoteDecoration,
blockquotePadding: blockquotePadding ?? this.blockquotePadding,
tableBorder: tableBorder ?? this.tableBorder,
tableHeaderBackground:
tableHeaderBackground ?? this.tableHeaderBackground,
linkStyle: linkStyle ?? this.linkStyle,
listPadding: listPadding ?? this.listPadding,
horizontalRuleThickness:
horizontalRuleThickness ?? this.horizontalRuleThickness,
horizontalRuleColor: horizontalRuleColor ?? this.horizontalRuleColor,
);
}