copyWith method
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,
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,
);
}