getStringListF static method
Returns a Future. Returns empty List if key is null.
Implementation
static Future<List<String>> getStringListF(String? key,
[List<String>? defValue]) async {
List<String> value;
if (key == null) {
return [''];
}
if (_prefsInstance == null) {
final prefs = await instance;
value = prefs.getStringList(key) ?? defValue ?? [''];
} else {
// SharedPreferences is available. Ignore init() function.
_initCalled = true;
value = getStringList(key, defValue);
}
return value;
}