from File
Creates a new ViewModelInstance.
⚠️ The lifetime of the returned view model instance is managed by the caller. Make sure to call close when you are done with the instance to release its resources.
Return
The created view model instance.
Parameters
file
The RiveFile to create the view model instance from.
source
The source of the view model instance. Constructed from ViewModelSource combined with ViewModelInstanceSource.