copyWith method
DynamicColor
copyWith({
- String? name,
- DynamicSchemeCallback<
TonalPalette> ? palette, - DynamicSchemeCallback<
double> ? tone, - bool? isBackground,
Implementation
DynamicColor copyWith({
String? name,
DynamicSchemeCallback<TonalPalette>? palette,
DynamicSchemeCallback<double>? tone,
bool? isBackground,
}) => name != null || palette != null || tone != null || isBackground != null
? DynamicColor(
name: name ?? this.name,
palette: palette ?? this.palette,
tone: tone ?? this.tone,
isBackground: isBackground ?? this.isBackground,
chromaMultiplier: chromaMultiplier,
background: background,
secondBackground: secondBackground,
contrastCurve: contrastCurve,
toneDeltaPair: toneDeltaPair,
opacity: opacity,
)
: this;