getSegment method
- required int segmentIndex,
Gets a segment at a specified segment index.
Parameters:
segmentIndex
— Zero-based index of the segment.
Return Value: A Segment.
Implementation
Segment getSegment({
required int segmentIndex,
}) {
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ImmutablePart_getSegment(
_handle,
segmentIndex,
errorHandler,
);
});
return Segment._fromHandle(
objectHandle,
)!;
}