clone method
Clones this instance of the layer and its members.
Return Value: A new Layer with the same values as the current Layer.
Implementation
Layer clone() {
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Layer_clone(
_handle,
errorHandler,
);
});
return Layer._fromHandle(
objectHandle,
)!;
}