addPart method
- {required MutablePart mutablePart}
Add a new part to the end of the mutable part collection.
Parameters:
mutablePart
— The part to add.
Return Value: the index where the part was added. If an error occurred, then -1 is returned.
Implementation
int addPart({required MutablePart mutablePart}) {
return _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_MutablePartCollection_addPart(
_handle, mutablePart._handle, errorHandler);
});
}