copyWith method

CategoryWeebi copyWith({
  1. int? id,
  2. String? title,
  3. DateTime? creationDate,
  4. DateTime? updateDate,
  5. Set<int>? calibresIds,
  6. int? color,
})

Implementation

CategoryWeebi copyWith({
  int? id,
  String? title,
  DateTime? creationDate,
  DateTime? updateDate,
  Set<int>? calibresIds,
  int? color,
}) {
  return CategoryWeebi(
    calibresIds: calibresIds ?? this.calibresIds,
    color: color ?? this.color,
    title: title ?? this.title,
    creationDate: creationDate ?? this.creationDate,
    updateDate: updateDate ?? this.updateDate,
  );
}