copyWith method
Copy the object with one or more provided properties changed.
Implementation
FlexSchemeColor copyWith({
final Color? primary,
final Color? primaryContainer,
final Color? primaryLightRef,
final Color? secondary,
final Color? secondaryContainer,
final Color? secondaryLightRef,
final Color? tertiary,
final Color? tertiaryContainer,
final Color? tertiaryLightRef,
final Color? appBarColor,
final Color? error,
final Color? errorContainer,
final bool? swapOnMaterial3,
}) {
return FlexSchemeColor(
primary: primary ?? this.primary,
primaryContainer: primaryContainer ?? this.primaryContainer,
primaryLightRef: primaryLightRef ?? this.primaryLightRef,
secondary: secondary ?? this.secondary,
secondaryContainer: secondaryContainer ?? this.secondaryContainer,
secondaryLightRef: secondaryLightRef ?? this.secondaryLightRef,
tertiary: tertiary ?? this.tertiary,
tertiaryContainer: tertiaryContainer ?? this.tertiaryContainer,
tertiaryLightRef: tertiaryLightRef ?? this.tertiaryLightRef,
appBarColor: appBarColor ?? this.appBarColor,
error: error ?? this.error,
errorContainer: errorContainer ?? this.errorContainer,
swapOnMaterial3: swapOnMaterial3 ?? this.swapOnMaterial3,
);
}