onInit method

  1. @override
void onInit()
override
  • Event callback after ViewModel is constructed.
  • The event is called by default every time the ViewModel view dependencies are updated.
  • Set initOnce of the MVVM as true to ignore dependencies updates.

Implementation

@override
void onInit() {
  // TODO: implement onBuild
}