copyWith method

NeonWheelFrame copyWith({
  1. Color? color,
  2. Color? secondaryColor,
  3. Color? plateColor,
})

Creates a copy of this frame with the given fields replaced.

Implementation

NeonWheelFrame copyWith({
  Color? color,
  Color? secondaryColor,
  Color? plateColor,
}) {
  return NeonWheelFrame(
    color: color ?? this.color,
    secondaryColor: secondaryColor ?? this.secondaryColor,
    plateColor: plateColor ?? this.plateColor,
  );
}