initState method

void initState(
  1. StateX<StatefulWidget>? state
)

Call this in the State object's initState() function.

Implementation

void initState(StateX? state) => pushState(state);