ContentTheme.raw constructor
ContentTheme.raw({})
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?>>,
});