Recent code change is included but app state is excluded

In Dart, static fields are lazily initialized.
This means that the first time you run a Flutter app and a
static field is read, it’s set to whatever value its
initializer was evaluated to.
Global variables and static fields are treated as state,
and are therefore not reinitialized during hot reload.

If you change initializers of global variables and static fields,
a hot restart or restart the state where the initializers are hold
is necessary to see the changes.
For example, consider the following code:

After running the app, you make the following change:

You hot reload, but the change is not reflected.

Conversely, in the following example:

Running the app for the first time prints 1 and 1.
Then, you make the following change: