transfer
Start a transfer of this ViewModelInstance to another File. This is necessary because normally the C++ lifetime of the instance is managed by the File it belongs to. When transferring, the instance needs to survive the possible deletion of its owning File.
You can omit this if you're certain that the originating File will not be deleted before this instance is assigned.
Important: once created, you must call Transfer.end or assign the instance to a StateMachineInstance or Artboard, otherwise the internal C++ reference count will leak.
See also
Throws
if the instance has already been disposed.