onInit method

  1. @override
void onInit(
  1. Map args
)
override

Is typically called once and shortly after constructor. In most of times Widget or State isn't ready yet. preventMultiInit is enabled by default and prevents multiple calls of this function. args input arguments passed from parent or Factory.

Implementation

@override
void onInit(Map args) {
  super.onInit(args);

  executeLoader();
}