I use sharedpreferences like this
Why wrong? what initialized..?
Before using the SharedPreferences variable, you need to initialize it:
_prefs = await SharedPreferences.getInstance();
Then you can use the variable.
Copyright © 2021 Jogjafile Inc.
Before using the SharedPreferences variable, you need to initialize it:
Then you can use the variable.