validate

abstract fun validate(polygon: DrawnPolygon): String?

Why polygon cannot be used (a line crosses itself, a hole is outside it, ...), or null if it can.