apply method

ContentTheme apply({
  1. List<ColorToken>? colors,
  2. FontFamily? font,
  3. FontFamily? codeFont,
  4. ContentTypography? typography,
  5. bool mergeColors = true,
})

Implementation

ContentTheme apply({
  List<ColorToken>? colors,
  FontFamily? font,
  FontFamily? codeFont,
  ContentTypography? typography,
  bool mergeColors = true,
}) {
  return copyWith(
    colors: mergeColors && colors != null ? this.colors.apply(colors: colors) : colors ?? this.colors,
    font: font ?? this.font,
    codeFont: codeFont ?? this.codeFont,
    typography: typography,
  );
}