copyWith method

NomoThemeData copyWith(
  1. {NomoColorThemeData? colorTheme,
  2. NomoTypographyTheme? typographyTheme,
  3. NomoSizingThemeData? sizingTheme}
)

Implementation

NomoThemeData copyWith({
  NomoColorThemeData? colorTheme,
  NomoTypographyTheme? typographyTheme,
  NomoSizingThemeData? sizingTheme,
}) {
  return NomoThemeData(
    colorTheme: colorTheme ?? this.colorTheme,
    textTheme: (typographyTheme ?? this.typographyTheme).copyWith(
      colors: colorTheme?.colors,
      sizes: sizingTheme?.sizes,
    ),
    sizingTheme: sizingTheme ?? this.sizingTheme,
  );
}