copyWith method
NomoThemeData
copyWith({
- NomoColorThemeData? colorTheme,
- NomoTypographyTheme? typographyTheme,
- NomoSizingThemeData? sizingTheme,
- NomoComponentConstants? constants,
Implementation
NomoThemeData copyWith({
NomoColorThemeData? colorTheme,
NomoTypographyTheme? typographyTheme,
NomoSizingThemeData? sizingTheme,
NomoComponentConstants? constants,
}) {
return NomoThemeData(
colorTheme: colorTheme ?? this.colorTheme,
textTheme: (typographyTheme ?? typography).copyWith(
colors: colorTheme?.colors,
sizes: sizingTheme?.sizes,
),
sizingTheme: sizingTheme ?? this.sizingTheme,
constants: constants ?? this.constants,
);
}