copyWith method

DsColorScheme copyWith({
  1. DsColorScale? accent,
  2. DsColorScale? neutral,
  3. DsColorScale? brand1,
  4. DsColorScale? brand2,
  5. DsColorScale? brand3,
  6. DsColorScale? success,
  7. DsColorScale? danger,
  8. DsColorScale? warning,
  9. DsColorScale? info,
  10. Map<String, DsColorScale>? custom,
})

Implementation

DsColorScheme copyWith({
  DsColorScale? accent,
  DsColorScale? neutral,
  DsColorScale? brand1,
  DsColorScale? brand2,
  DsColorScale? brand3,
  DsColorScale? success,
  DsColorScale? danger,
  DsColorScale? warning,
  DsColorScale? info,
  Map<String, DsColorScale>? custom,
}) {
  return DsColorScheme(
    accent: accent ?? this.accent,
    neutral: neutral ?? this.neutral,
    brand1: brand1 ?? this.brand1,
    brand2: brand2 ?? this.brand2,
    brand3: brand3 ?? this.brand3,
    success: success ?? this.success,
    danger: danger ?? this.danger,
    warning: warning ?? this.warning,
    info: info ?? this.info,
    custom: custom ?? this.custom,
  );
}