getValidationError method

TopologyValidationError? getValidationError()

Computes the validity of the geometry, and if not valid returns the validation error for the geometry, or null if the geometry is valid.

@return the validation error, if the geometry is invalid or null if the geometry is valid

Implementation

TopologyValidationError? getValidationError() {
  checkValid(parentGeometry);
  return validErr;
}