copyWith method
ContentTheme
copyWith({
- List<
ColorToken> ? colors, - FontFamily? font,
- FontFamily? codeFont,
- ContentTypography? typography,
- Iterable<
ThemeExtension< ? extensions,Object?> >
Implementation
ContentTheme copyWith({
List<ColorToken>? colors,
FontFamily? font,
FontFamily? codeFont,
ContentTypography? typography,
Iterable<ThemeExtension<Object?>>? extensions,
}) {
return ContentTheme(
colors: colors ?? this.colors,
font: font ?? this.font,
codeFont: codeFont ?? this.codeFont,
typography: typography ?? this.typography,
extensions: extensions ?? this.extensions.values,
);
}