copyWith method

ProductCategory copyWith({
  1. int? id,
  2. String? productCat,
  3. String? color,
  4. int? display,
  5. String? label,
})

Implementation

ProductCategory copyWith({
  int? id,
  String? productCat,
  String? color,
  int? display,
  String? label,
}) =>
    ProductCategory(
      id: id ?? this.id,
      productCat: productCat ?? this.productCat,
      color: color ?? this.color,
      display: display ?? this.display,
      label: label ?? this.label,
    );