copyWith method

ProductStatus copyWith({
  1. ProductStatusStatus? status,
  2. String? lastStatusChange,
  3. ProductStatusBreakdown? breakdown,
})

Implementation

ProductStatus copyWith(
    {enums.ProductStatusStatus? status,
    String? lastStatusChange,
    ProductStatusBreakdown? breakdown}) {
  return ProductStatus(
      status: status ?? this.status,
      lastStatusChange: lastStatusChange ?? this.lastStatusChange,
      breakdown: breakdown ?? this.breakdown);
}