copyWith method
DynamicPalette
copyWith({
- ColorMixer? primaryMixer,
- ColorMixer? secondaryMixer,
- ColorMixer? successMixer,
- ColorMixer? neutralMixer,
- ColorMixer? errorMixer,
- ColorMixer? warningMixer,
- ColorMixer? contrastMixer,
Implementation
DynamicPalette copyWith({
ColorMixer? primaryMixer,
ColorMixer? secondaryMixer,
ColorMixer? successMixer,
ColorMixer? neutralMixer,
ColorMixer? errorMixer,
ColorMixer? warningMixer,
ColorMixer? contrastMixer,
}) {
return DynamicPalette(
primaryMixer: primaryMixer ?? this.primaryMixer,
secondaryMixer: secondaryMixer ?? this.secondaryMixer,
successMixer: successMixer ?? this.successMixer,
neutralMixer: neutralMixer ?? this.neutralMixer,
errorMixer: errorMixer ?? this.errorMixer,
warningMixer: warningMixer ?? this.warningMixer,
contrastMixer: contrastMixer ?? this.contrastMixer,
);
}