onCleared
Cleans up resources and closes all connections. Must be called when the ViewModel is no longer needed to prevent memory leaks.
Cleans up resources and closes all connections. Must be called when the ViewModel is no longer needed to prevent memory leaks.