copyWithWrapped method
ProductStatus
copyWithWrapped({
- Wrapped<
ProductStatusStatus> ? status, - Wrapped<
DateTime> ? lastStatusChange, - Wrapped<
ProductStatusBreakdown> ? breakdown,
Implementation
ProductStatus copyWithWrapped(
{Wrapped<enums.ProductStatusStatus>? status,
Wrapped<DateTime>? lastStatusChange,
Wrapped<ProductStatusBreakdown>? breakdown}) {
return ProductStatus(
status: (status != null ? status.value : this.status),
lastStatusChange: (lastStatusChange != null
? lastStatusChange.value
: this.lastStatusChange),
breakdown: (breakdown != null ? breakdown.value : this.breakdown));
}