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