copyWith method

FleatherThemeData copyWith({
  1. TextStyle? bold,
  2. TextStyle? italic,
  3. TextStyle? underline,
  4. TextStyle? strikethrough,
  5. TextStyle? link,
  6. InlineCodeThemeData? inlineCode,
  7. TextBlockTheme? paragraph,
  8. TextBlockTheme? heading1,
  9. TextBlockTheme? heading2,
  10. TextBlockTheme? heading3,
  11. TextBlockTheme? heading4,
  12. TextBlockTheme? heading5,
  13. TextBlockTheme? heading6,
  14. TextBlockTheme? lists,
  15. TextBlockTheme? quote,
  16. TextBlockTheme? code,
  17. HorizontalRuleThemeData? horizontalRuleThemeData,
  18. StrutStyle? strutStyle,
})

Implementation

FleatherThemeData copyWith({
  TextStyle? bold,
  TextStyle? italic,
  TextStyle? underline,
  TextStyle? strikethrough,
  TextStyle? link,
  InlineCodeThemeData? inlineCode,
  TextBlockTheme? paragraph,
  TextBlockTheme? heading1,
  TextBlockTheme? heading2,
  TextBlockTheme? heading3,
  TextBlockTheme? heading4,
  TextBlockTheme? heading5,
  TextBlockTheme? heading6,
  TextBlockTheme? lists,
  TextBlockTheme? quote,
  TextBlockTheme? code,
  HorizontalRuleThemeData? horizontalRuleThemeData,
  StrutStyle? strutStyle,
}) {
  return FleatherThemeData(
    bold: bold ?? this.bold,
    italic: italic ?? this.italic,
    underline: underline ?? this.underline,
    strikethrough: strikethrough ?? this.strikethrough,
    inlineCode: inlineCode ?? this.inlineCode,
    link: link ?? this.link,
    paragraph: paragraph ?? this.paragraph,
    heading1: heading1 ?? this.heading1,
    heading2: heading2 ?? this.heading2,
    heading3: heading3 ?? this.heading3,
    heading4: heading4 ?? this.heading4,
    heading5: heading5 ?? this.heading5,
    heading6: heading6 ?? this.heading6,
    lists: lists ?? this.lists,
    quote: quote ?? this.quote,
    code: code ?? this.code,
    horizontalRule: horizontalRuleThemeData ?? horizontalRule,
    strutStyle: strutStyle ?? this.strutStyle,
  );
}