copyWith method

PrismMarkdownStyle copyWith({
  1. TextStyle? textStyle,
  2. List<TextStyle?>? headingStyle,
  3. TextStyle? codeStyle,
  4. Color? codeBackground,
  5. Color? codeblockBackground,
  6. EdgeInsetsGeometry? codeblockPadding,
  7. Decoration? blockquoteDecoration,
  8. EdgeInsetsGeometry? blockquotePadding,
  9. TableBorder? tableBorder,
  10. Color? tableHeaderBackground,
  11. TextStyle? linkStyle,
  12. EdgeInsetsGeometry? listPadding,
  13. double? horizontalRuleThickness,
  14. 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,
  );
}