copyWith method
Implementation
TrackedBarcode copyWith({
Rect? boundingBox,
List<Offset>? corners,
DateTime? lastSeenTime,
int? hitCount,
}) {
return TrackedBarcode(
id: id,
rawValue: rawValue,
format: format,
boundingBox: boundingBox ?? this.boundingBox,
corners: corners ?? this.corners,
firstDetectedTime: firstDetectedTime,
lastSeenTime: lastSeenTime ?? this.lastSeenTime,
hitCount: hitCount ?? this.hitCount,
);
}