onCreate method

void onCreate()

Called only once when the ViewModel is created.

Implementation

void onCreate() {}