copyWith method
FlexTones
copyWith({
- int? primaryTone,
- int? onPrimaryTone,
- int? primaryContainerTone,
- int? onPrimaryContainerTone,
- int? secondaryTone,
- int? onSecondaryTone,
- int? secondaryContainerTone,
- int? onSecondaryContainerTone,
- int? tertiaryTone,
- int? onTertiaryTone,
- int? tertiaryContainerTone,
- int? onTertiaryContainerTone,
- int? errorTone,
- int? onErrorTone,
- int? errorContainerTone,
- int? onErrorContainerTone,
- int? backgroundTone,
- int? onBackgroundTone,
- int? surfaceTone,
- int? onSurfaceTone,
- int? surfaceVariantTone,
- int? onSurfaceVariantTone,
- int? outlineTone,
- int? outlineVariantTone,
- int? shadowTone,
- int? scrimTone,
- int? inverseSurfaceTone,
- int? onInverseSurfaceTone,
- int? inversePrimaryTone,
- int? surfaceTintTone,
- double? primaryChroma,
- double? primaryMinChroma,
- double? secondaryChroma,
- double? secondaryMinChroma,
- double? tertiaryChroma,
- double? tertiaryMinChroma,
- double? tertiaryHueRotation,
- double? errorChroma,
- double? errorMinChroma,
- double? neutralChroma,
- double? neutralMinChroma,
- double? neutralVariantChroma,
- double? neutralVariantMinChroma,
- FlexPaletteType? paletteType,
Copy the object with one or more provided properties changed.
Implementation
FlexTones copyWith({
int? primaryTone,
int? onPrimaryTone,
int? primaryContainerTone,
int? onPrimaryContainerTone,
int? secondaryTone,
int? onSecondaryTone,
int? secondaryContainerTone,
int? onSecondaryContainerTone,
int? tertiaryTone,
int? onTertiaryTone,
int? tertiaryContainerTone,
int? onTertiaryContainerTone,
int? errorTone,
int? onErrorTone,
int? errorContainerTone,
int? onErrorContainerTone,
int? backgroundTone,
int? onBackgroundTone,
int? surfaceTone,
int? onSurfaceTone,
int? surfaceVariantTone,
int? onSurfaceVariantTone,
int? outlineTone,
int? outlineVariantTone,
int? shadowTone,
int? scrimTone,
int? inverseSurfaceTone,
int? onInverseSurfaceTone,
int? inversePrimaryTone,
int? surfaceTintTone,
double? primaryChroma,
double? primaryMinChroma,
double? secondaryChroma,
double? secondaryMinChroma,
double? tertiaryChroma,
double? tertiaryMinChroma,
double? tertiaryHueRotation,
double? errorChroma,
double? errorMinChroma,
double? neutralChroma,
double? neutralMinChroma,
double? neutralVariantChroma,
double? neutralVariantMinChroma,
FlexPaletteType? paletteType,
}) {
return FlexTones(
primaryTone: primaryTone ?? this.primaryTone,
onPrimaryTone: onPrimaryTone ?? this.onPrimaryTone,
primaryContainerTone: primaryContainerTone ?? this.primaryContainerTone,
onPrimaryContainerTone:
onPrimaryContainerTone ?? this.onPrimaryContainerTone,
secondaryTone: secondaryTone ?? this.secondaryTone,
onSecondaryTone: onSecondaryTone ?? this.onSecondaryTone,
secondaryContainerTone:
secondaryContainerTone ?? this.secondaryContainerTone,
onSecondaryContainerTone:
onSecondaryContainerTone ?? this.onSecondaryContainerTone,
tertiaryTone: tertiaryTone ?? this.tertiaryTone,
onTertiaryTone: onTertiaryTone ?? this.onTertiaryTone,
tertiaryContainerTone:
tertiaryContainerTone ?? this.tertiaryContainerTone,
onTertiaryContainerTone:
onTertiaryContainerTone ?? this.onTertiaryContainerTone,
errorTone: errorTone ?? this.errorTone,
onErrorTone: onErrorTone ?? this.onErrorTone,
errorContainerTone: errorContainerTone ?? this.errorContainerTone,
onErrorContainerTone: onErrorContainerTone ?? this.onErrorContainerTone,
backgroundTone: backgroundTone ?? this.backgroundTone,
onBackgroundTone: onBackgroundTone ?? this.onBackgroundTone,
surfaceTone: surfaceTone ?? this.surfaceTone,
onSurfaceTone: onSurfaceTone ?? this.onSurfaceTone,
surfaceVariantTone: surfaceVariantTone ?? this.surfaceVariantTone,
onSurfaceVariantTone: onSurfaceVariantTone ?? this.onSurfaceVariantTone,
outlineTone: outlineTone ?? this.outlineTone,
outlineVariantTone: outlineVariantTone ?? this.outlineVariantTone,
shadowTone: shadowTone ?? this.shadowTone,
scrimTone: scrimTone ?? this.scrimTone,
inverseSurfaceTone: inverseSurfaceTone ?? this.inverseSurfaceTone,
onInverseSurfaceTone: onInverseSurfaceTone ?? this.onInverseSurfaceTone,
inversePrimaryTone: inversePrimaryTone ?? this.inversePrimaryTone,
surfaceTintTone: surfaceTintTone ?? this.surfaceTintTone,
primaryChroma: primaryChroma ?? this.primaryChroma,
primaryMinChroma: primaryMinChroma ?? this.primaryMinChroma,
secondaryChroma: secondaryChroma ?? this.secondaryChroma,
secondaryMinChroma: secondaryMinChroma ?? this.secondaryMinChroma,
tertiaryChroma: tertiaryChroma ?? this.tertiaryChroma,
tertiaryMinChroma: tertiaryMinChroma ?? this.tertiaryMinChroma,
tertiaryHueRotation: tertiaryHueRotation ?? this.tertiaryHueRotation,
errorChroma: errorChroma ?? this.errorChroma,
errorMinChroma: errorMinChroma ?? this.errorMinChroma,
neutralChroma: neutralChroma ?? this.neutralChroma,
neutralMinChroma: neutralMinChroma ?? this.neutralMinChroma,
neutralVariantChroma: neutralVariantChroma ?? this.neutralVariantChroma,
neutralVariantMinChroma:
neutralVariantMinChroma ?? this.neutralVariantMinChroma,
paletteType: paletteType ?? this.paletteType,
);
}