I really like the idea of InitBuilder, which saves us from writing code in initState.
However, how would one go about refreshing the data? For example, I load a list in InitBuilder's getter and user sees the list. User then does a pull to refresh. Normally, with a FutureBuilder I would reassign the future variable that was used. How can I achieve such a refresh with InitBuilder?
One idea that comes to mind is to provide a dummy arg that is increased in setState every time user refreshes. Would that work? Is there a better way?
I really like the idea of InitBuilder, which saves us from writing code in initState.
However, how would one go about refreshing the data? For example, I load a list in InitBuilder's getter and user sees the list. User then does a pull to refresh. Normally, with a FutureBuilder I would reassign the future variable that was used. How can I achieve such a refresh with InitBuilder?
One idea that comes to mind is to provide a dummy arg that is increased in setState every time user refreshes. Would that work? Is there a better way?