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