copy method
ThemeColors
copy(
{ - Color? primary,
- Color? secondary,
- Color? tertiary,
- Color? error,
- Color? warning,
- Color? disable,
- Color? light,
- Color? lightAsFixed,
- Color? dark,
- Color? darkAsFixed,
- Color? mid,
- Color? holo,
- Color? soft,
- Color? deep,
})
Implementation
@override
ThemeColors copy({
Color? primary,
Color? secondary,
Color? tertiary,
Color? error,
Color? warning,
Color? disable,
Color? light,
Color? lightAsFixed,
Color? dark,
Color? darkAsFixed,
Color? mid,
Color? holo,
Color? soft,
Color? deep,
}) {
return ThemeColors(
primary: primary ?? this.primary,
secondary: secondary ?? this.secondary,
tertiary: tertiary ?? this.tertiary,
error: error ?? this.error,
warning: warning ?? this.warning,
disable: disable ?? this.disable,
light: light ?? this.light,
lightAsFixed: lightAsFixed ?? this.lightAsFixed,
dark: dark ?? this.dark,
darkAsFixed: darkAsFixed ?? this.darkAsFixed,
mid: mid ?? this.mid,
holo: holo ?? this.holo,
soft: soft ?? this.soft,
deep: deep ?? this.deep,
);
}