getPart method

MutablePart getPart({
  1. required int index,
})

Returns a part at the specified index in the collection.

Parameters:

  • index — The position in the collection.

Return Value: The part at the specified position in the collection.

Implementation

MutablePart getPart({
  required int index,
}) {
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MutablePartCollection_getPart(
      _handle,
      index,
      errorHandler,
    );
  });
  return MutablePart._fromHandle(
    objectHandle,
  )!;
}