getInstance static method
Implementation
static Future<SharedPreferencesService> getInstance() async {
_instance ??= SharedPreferencesService._();
_preferences = await SharedPreferences.getInstance();
return _instance!;
}
static Future<SharedPreferencesService> getInstance() async {
_instance ??= SharedPreferencesService._();
_preferences = await SharedPreferences.getInstance();
return _instance!;
}