ContentTheme.raw constructor
ContentTheme.raw({
- List<
ColorToken> colors = const [], - FontFamily? font,
- FontFamily? codeFont,
- ContentTypography typography = const ContentTypography.none(),
- Iterable<
ThemeExtension< extensions = const [],Object?> > - bool reset = false,
Creates an empty theme and applies the provided colors, fonts and styles.
Implementation
ContentTheme.raw({
List<ColorToken> colors = const [],
this.font,
this.codeFont,
this.typography = const ContentTypography.none(),
Iterable<ThemeExtension<Object?>> extensions = const [],
this.reset = false,
}) : colors = List<ColorToken>.unmodifiable(colors),
extensions = Map<Object, ThemeExtension<Object?>>.unmodifiable(<Object, ThemeExtension<Object?>>{
for (final ThemeExtension<Object?> extension in extensions)
extension.type: extension as ThemeExtension<ThemeExtension<Object?>>,
});