copyWith method

CarDamage copyWith({
  1. num? score,
  2. List<num?>? box,
  3. String? maskPath,
  4. bool? isPart,
  5. String? maskUrl,
  6. String? className,
  7. String? damageKey,
  8. String? classUuid,
})

Implementation

CarDamage copyWith({
  num? score,
  List<num?>? box,
  String? maskPath,
  bool? isPart,
  String? maskUrl,
  String? className,
  String? damageKey,
  String? classUuid,
}) {
  return CarDamage(
    score: score ?? this.score,
    box: box ?? this.box,
    maskPath: maskPath ?? this.maskPath,
    isPart: isPart ?? this.isPart,
    maskUrl: maskUrl ?? this.maskUrl,
    className: className ?? this.className,
    damageKey: damageKey ?? this.damageKey,
    classUuid: classUuid ?? this.classUuid,
  );
}