initState method

void initState()

Universal synchronous lifecycle hook called once before the first build on BOTH the server (SSR) and the browser client.

Use this to initialize late fields or derive initial state from props so SSR (res.page) never encounters a LateInitializationError. Keep browser-only DOM queries and network calls in didMount.

Implementation

void initState() {}