copyWith method

Hierarchy copyWith({
  1. int? baseLevelId,
  2. List<SimplifiedHierarchyLevel>? levels,
})

Implementation

Hierarchy copyWith(
    {int? baseLevelId, List<SimplifiedHierarchyLevel>? levels}) {
  return Hierarchy(
    baseLevelId: baseLevelId ?? this.baseLevelId,
    levels: levels ?? this.levels,
  );
}