defaults method
ThemeColors
defaults(
{ - 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 defaults({
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: this.primary ?? primary,
secondary: this.secondary ?? secondary,
tertiary: this.tertiary ?? tertiary,
error: this.error ?? error,
warning: this.warning ?? warning,
disable: this.disable ?? disable,
light: this.light ?? light,
lightAsFixed: this.lightAsFixed ?? lightAsFixed,
dark: this.dark ?? dark,
darkAsFixed: this.darkAsFixed ?? darkAsFixed,
mid: this.mid ?? mid,
holo: this.holo ?? holo,
soft: this.soft ?? soft,
deep: this.deep ?? deep,
);
}