removeSegment method
- required int segmentIndex,
Remove a segment at the specified index from the part.
If the segment connected to adjacent segments, then after a segment is removed a gap can be left behind.
Parameters:
segmentIndex
— Zero-based index of the segment.
Implementation
void removeSegment({
required int segmentIndex,
}) {
_withThrowingErrorHandler((errorHandler) {
runtimecore.RT_MutablePart_removeSegment(
_handle,
segmentIndex,
errorHandler,
);
});
}