onInitState method

  1. @override
void onInitState()
inherited

onInitState is called only once when the widget has been initialized and inserted into the widget tree, before the build method of the widget is called.

onInitState is equivalent to initState of StatefulWidget.

Implementation

@override
void onInitState() {
  _initStateComponent();
  markViewModelHasBondLifeCycle();
  super.onInitState();
}