getF static method
Returns a Future. Return null if key is null
Implementation
static Future<Object?> getF(String? key) async {
Object? 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;
}