areas property

Implementation

UnmodifiableListView<Area> get areas => UnmodifiableListView(_areas);
set areas (List<Area> areas)

Set the areas. Changes the flex to 1 if the total flex of the areas is 0.

Implementation

set areas(List<Area> areas) {
  for (Area area in _areas) {
    AreaHelper.setIndex(area: area, index: -1);
  }
  _areas = List.from(areas);
  _updateAreas();
  notifyListeners();
}