getF static method
Returns a Future. Return null if key is null
Implementation
static Future<dynamic> getF(String? key) async {
dynamic value;
if (key == null) {
return null;
}
if (_prefsInstance == null) {
final prefs = await INSTANCE;
value = prefs.get(key);
} else {
// SharedPreferences is available. Ignore init() function.
_initCalled = true;
value = get(key);
}
return value;
}