copyWithCompanion method
Implementation
CategoryData copyWithCompanion(CategoryCompanion data) {
return CategoryData(
id: data.id.present ? data.id.value : this.id,
code: data.code.present ? data.code.value : this.code,
name: data.name.present ? data.name.value : this.name,
imagePath: data.imagePath.present ? data.imagePath.value : this.imagePath,
description: data.description.present
? data.description.value
: this.description,
);
}