bool isChanged(Polygon current, Map<PolygonId, Polygon> oldPolygons) { final Polygon old = oldPolygons[current.polygonId]!; return current != old; }