onInit method

void onInit(
  1. Store<State> store
)

A function that will run when the StoreConnector in Page will initially be created.

This can be useful for dispatching actions that fetch data for your Widget when it is first displayed.

Implementation

void onInit(Store<State> store) {}