updateArea method

void updateArea(
  1. int index,
  2. Area area
)

Implementation

void updateArea(int index, Area area) {
  _areas[index] = area;
  _updateAreas();
  notifyListeners();
}