isCurve property

bool isCurve

False if the object is a LineSegment; true otherwise.

Prior to v100.12, only LineSegment instances were supported when creating new geometries using a MultipartBuilder or iterating the Segment instances in an existing Multipart geometry.

From v100.12, you can add curve segments (CubicBezierSegment, EllipticArcSegment) when using a MultipartBuilder, and get them back from an existing Multipart geometry when Geometry.hasCurves is true.

Implementation

bool get isCurve {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Segment_getIsCurve(_handle, errorHandler);
  });
}