copyWith method

RoyalWheelFrame copyWith({
  1. Color? goldColor,
  2. Color? gemColor,
  3. int? gemCount,
  4. Color? plateColor,
  5. bool? shadow,
})

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,
  );
}