copyWith method

ZefyrThemeData copyWith({
  1. TextStyle? bold,
  2. TextStyle? italic,
  3. TextStyle? underline,
  4. TextStyle? strikethrough,
  5. TextStyle? link,
  6. TextBlockTheme? paragraph,
  7. TextBlockTheme? heading1,
  8. TextBlockTheme? heading2,
  9. TextBlockTheme? heading3,
  10. TextBlockTheme? lists,
  11. TextBlockTheme? quote,
  12. TextBlockTheme? code,
})

Implementation

ZefyrThemeData copyWith({
  TextStyle? bold,
  TextStyle? italic,
  TextStyle? underline,
  TextStyle? strikethrough,
  TextStyle? link,
  TextBlockTheme? paragraph,
  TextBlockTheme? heading1,
  TextBlockTheme? heading2,
  TextBlockTheme? heading3,
  TextBlockTheme? lists,
  TextBlockTheme? quote,
  TextBlockTheme? code,
}) {
  return ZefyrThemeData(
    bold: bold ?? this.bold,
    italic: italic ?? this.italic,
    underline: underline ?? this.underline,
    strikethrough: strikethrough ?? this.strikethrough,
    link: link ?? this.link,
    paragraph: paragraph ?? this.paragraph,
    heading1: heading1 ?? this.heading1,
    heading2: heading2 ?? this.heading2,
    heading3: heading3 ?? this.heading3,
    lists: lists ?? this.lists,
    quote: quote ?? this.quote,
    code: code ?? this.code,
  );
}