copyWith method
Creates a copy of this frame with the given fields replaced.
Implementation
ClassicWheelFrame copyWith({
Color? rimColor,
Color? rimHighlightColor,
Color? trimColor,
Color? studColor,
int? toothCount,
int? studCount,
Color? plateColor,
bool? shadow,
}) {
return ClassicWheelFrame(
rimColor: rimColor ?? this.rimColor,
rimHighlightColor: rimHighlightColor ?? this.rimHighlightColor,
trimColor: trimColor ?? this.trimColor,
studColor: studColor ?? this.studColor,
toothCount: toothCount ?? this.toothCount,
studCount: studCount ?? this.studCount,
plateColor: plateColor ?? this.plateColor,
shadow: shadow ?? this.shadow,
);
}