Store API result in App State

Database & APIs

Hello,

Probably a stupid question but I have a Listview with an API call on it and the on Pull to refresh set on it. It works fine.


But I would like to store the result of the API call in an app state. How to do that?


My API is parsed as a data type 'profile' in List and my App state is a list of this data Type...

What have you tried so far?

I have created a function to get the result before sending it back to the listview but in a function I can't update an App state...

Did you check FlutterFlow's Documentation for this topic?
No
1
7 replies