isCurve property

bool isCurve

True if the segment is a CubicBezierSegment or EllipticArcSegment, false otherwise.

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,
    );
  });
}