copyWith method

FlexTones copyWith({
  1. int? primaryTone,
  2. int? onPrimaryTone,
  3. int? primaryContainerTone,
  4. int? onPrimaryContainerTone,
  5. int? secondaryTone,
  6. int? onSecondaryTone,
  7. int? secondaryContainerTone,
  8. int? onSecondaryContainerTone,
  9. int? tertiaryTone,
  10. int? onTertiaryTone,
  11. int? tertiaryContainerTone,
  12. int? onTertiaryContainerTone,
  13. int? errorTone,
  14. int? onErrorTone,
  15. int? errorContainerTone,
  16. int? onErrorContainerTone,
  17. int? backgroundTone,
  18. int? onBackgroundTone,
  19. int? surfaceTone,
  20. int? onSurfaceTone,
  21. int? surfaceVariantTone,
  22. int? onSurfaceVariantTone,
  23. int? outlineTone,
  24. int? outlineVariantTone,
  25. int? shadowTone,
  26. int? scrimTone,
  27. int? inverseSurfaceTone,
  28. int? onInverseSurfaceTone,
  29. int? inversePrimaryTone,
  30. int? surfaceTintTone,
  31. double? primaryChroma,
  32. double? primaryMinChroma,
  33. double? secondaryChroma,
  34. double? secondaryMinChroma,
  35. double? tertiaryChroma,
  36. double? tertiaryMinChroma,
  37. double? tertiaryHueRotation,
  38. double? errorChroma,
  39. double? errorMinChroma,
  40. double? neutralChroma,
  41. double? neutralMinChroma,
  42. double? neutralVariantChroma,
  43. double? neutralVariantMinChroma,
  44. 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,
  );
}