onInit method

void onInit(
  1. Map args
)

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

void onInit(Map args) {}