Category constructor

Category({
  1. required String id,
  2. required String name,
})

Creates a new instance of the Category class.

Implementation

Category({
  required this.id,
  required this.name,
});