Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
A callback after ViewModel is constructed.
The event is called by default every time the
ViewModel view dependencies are updated.
Set initOnce of the ViewModelBuilder builder to true to ignore
dependencies updates.