copyWith method

Category copyWith({
  1. String? categoryId,
  2. String? group,
  3. List<String>? hierarchy,
})

Implementation

Category copyWith(
    {String? categoryId, String? group, List<String>? hierarchy}) {
  return Category(
      categoryId: categoryId ?? this.categoryId,
      group: group ?? this.group,
      hierarchy: hierarchy ?? this.hierarchy);
}