isSketchValid property

bool isSketchValid

True if the geometry builder contains sufficient points to show a valid graphical sketch, false otherwise.

This can be used as an initial lightweight check to see if the current state of a builder produces a non-empty geometry. For example, it may be used to enable or disable functionality in an editing user interface. The exact requirements vary depending on the type of geometry produced by the builder:

Note that this is not equivalent to topological simplicity, which is enforced by GeometryEngine.simplify and checked using GeometryEngine.isSimple. Geometries must be topologically simple to be successfully saved in a geodatabase or used in some service operations.

It does not check the spatial reference and returns false if an error occurs.

Implementation

bool get isSketchValid {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeometryBuilder_getIsSketchValid(
        _handle, errorHandler);
  });
}