DynamicPalette.from constructor
DynamicPalette.from(
- CommonPalette from
Implementation
factory DynamicPalette.from(CommonPalette from) {
return DynamicPalette(
primaryMixer: BrightnessColorMixer(baseColor: from.primary),
secondaryMixer: BrightnessColorMixer(baseColor: from.secondary),
successMixer: BrightnessColorMixer(baseColor: from.success),
neutralMixer: BrightnessColorMixer(baseColor: from.neutral),
errorMixer: BrightnessColorMixer(baseColor: from.error),
warningMixer: BrightnessColorMixer(baseColor: from.warning),
contrastMixer: BrightnessColorMixer(baseColor: from.contrast),
);
}