sharedpreferences in flutter example
Example 1: shared prefs flutter
dependencies:
shared_preferences: ^0.5.12+4
Example 2: flutter sharedpreferences
void initState() {
super.initState();
asyncMethod();
}
void asyncMethod() async {
await asyncCall1();
await asyncCall2();
// ....
}