onInit property Null safety

OnInitCallback<St>? onInit
final

A function that will be run when the StoreConnector is initially created. It is run in the State.initState method. This can be useful for dispatching actions that fetch data for your Widget when it is first displayed.

Implementation

@override
final OnInitCallback<St>? onInit;