copyWith method
Damage
copyWith(
{ - num? score,
- List<num?>? box,
- String? maskPath,
- bool? isPart,
- num? overlapRate,
- String? className,
- String? damageKey,
- String? damageColor,
- String? maskUrl,
- String? classUuid,
- String? location,
- int? claimId,
- String? imageId,
- bool? isMaskDuplicate,
- String? damageTypeName,
- String? damageTypeColor,
})
Implementation
Damage copyWith({
num? score,
List<num?>? box,
String? maskPath,
bool? isPart,
num? overlapRate,
String? className,
String? damageKey,
String? damageColor,
String? maskUrl,
String? classUuid,
String? location,
int? claimId,
String? imageId,
bool? isMaskDuplicate,
String? damageTypeName,
String? damageTypeColor,
}) {
return Damage(
score: score ?? this.score,
box: box ?? this.box,
maskPath: maskPath ?? this.maskPath,
isPart: isPart ?? this.isPart,
overlapRate: overlapRate ?? this.overlapRate,
className: className ?? this.className,
damageKey: damageKey ?? this.damageKey,
damageColor: damageColor ?? this.damageColor,
maskUrl: maskUrl ?? this.maskUrl,
claimId: claimId ?? this.claimId,
classUuid: classUuid ?? this.classUuid,
damageTypeColor: damageTypeColor ?? this.damageTypeColor,
damageTypeName: damageTypeName ?? this.damageTypeName,
imageId: imageId ?? this.imageId,
isMaskDuplicate: isMaskDuplicate ?? this.isMaskDuplicate,
location: location ?? this.location,
);
}