copyWith method
Copy the object with one or more provided properties changed.
Implementation
FlexSchemeOnColors copyWith({
Color? onPrimary,
Color? onSecondary,
Color? onSurface,
Color? onBackground,
Color? onError,
}) {
return FlexSchemeOnColors(
onPrimary: onPrimary ?? this.onPrimary,
onSecondary: onSecondary ?? this.onSecondary,
onSurface: onSurface ?? this.onSurface,
onBackground: onBackground ?? this.onBackground,
onError: onError ?? this.onError,
);
}