copyWith method

DynamicPalette copyWith({
  1. ColorMixer? primaryMixer,
  2. ColorMixer? secondaryMixer,
  3. ColorMixer? successMixer,
  4. ColorMixer? neutralMixer,
  5. ColorMixer? errorMixer,
  6. ColorMixer? warningMixer,
  7. 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,
  );
}