ContentTheme.raw constructor

ContentTheme.raw({
  1. List<ColorToken> colors = const [],
  2. FontFamily? font,
  3. FontFamily? codeFont,
  4. ContentTypography typography = const ContentTypography.none(),
  5. Iterable<ThemeExtension<Object?>> extensions = const [],
  6. 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?>>,
     });