Is there a way to store id value from http response which can be accessed from any page?

53 views Asked by At

I'm new to flutter is there a way to store id value from http response which can be accessed from any page ?. When login the response comes with an ID, I needed that id in various pages in flutter. Is it possible to store it and get the scope from all over the application>

1

There are 1 answers

4
Arvind On BEST ANSWER

Use SharedPreferences to persist application related data. This would be cleared once user clears data of the app.