Area({required this.points, this.passable = true}) { for (var element in points) { assert(element.z == 0.0, "Only 2D points are allowed"); } }