restartOnHotReload property
If true, then animations will automatically restart whenever a hot reload occurs. This is useful for testing animations quickly during development.
You can get similar results for an individual animation by passing it a UniqueKey, which will cause it to restart each time it is rebuilt.
myWidget.animate(key: UniqueKey()).fade()
Implementation
static bool restartOnHotReload = false;