copyWith method

ContentTheme copyWith({
  1. List<ColorToken>? colors,
  2. FontFamily? font,
  3. FontFamily? codeFont,
  4. ContentTypography? typography,
})

Implementation

ContentTheme copyWith({
  List<ColorToken>? colors,
  FontFamily? font,
  FontFamily? codeFont,
  ContentTypography? typography,
}) {
  return ContentTheme(
    colors: colors ?? this.colors,
    font: font ?? this.font,
    codeFont: codeFont ?? this.codeFont,
    typography: typography ?? this.typography,
  );
}