I came across this question/doubt while coding my app, that on hot restart the app is initialised again which runs all the initState(){} and the last value of t
initState(){}