getInstance method
Implementation
Future<SharedPreferences> getInstance() async {
sharedPreferences ??= await SharedPreferences.getInstance();
return sharedPreferences!;
}
Future<SharedPreferences> getInstance() async {
sharedPreferences ??= await SharedPreferences.getInstance();
return sharedPreferences!;
}