copyWith method
Creates a copy of this frame with the given fields replaced.
Implementation
RoyalWheelFrame copyWith({
Color? goldColor,
Color? gemColor,
int? gemCount,
Color? plateColor,
bool? shadow,
}) {
return RoyalWheelFrame(
goldColor: goldColor ?? this.goldColor,
gemColor: gemColor ?? this.gemColor,
gemCount: gemCount ?? this.gemCount,
plateColor: plateColor ?? this.plateColor,
shadow: shadow ?? this.shadow,
);
}