copyWith method

ClassicWheelFrame copyWith({
  1. Color? rimColor,
  2. Color? rimHighlightColor,
  3. Color? trimColor,
  4. Color? studColor,
  5. int? toothCount,
  6. int? studCount,
  7. Color? plateColor,
  8. bool? shadow,
})

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