onInit property
dynamic Function()?
onInit
final
Called when this object is inserted into the tree.
The framework will call this method exactly once for each State object it creates.
Implementation
final Function()? onInit;