CategoryEntity constructor

const CategoryEntity({
  1. required String name,
  2. required List<CategoryEntity> subcategories,
  3. int? id,
  4. int? parentId,
  5. String? humanReadableId,
  6. String? imageUrl,
})

Implementation

const CategoryEntity({
  required this.name,
  required this.subcategories,
  this.id,
  this.parentId,
  this.humanReadableId,
  this.imageUrl,
});