getStringList static method
Returns empty List if key is null.
Implementation
static List<String> getStringList(String? key, [List<String>? defValue]) {
if (key == null) {
return [''];
}
assert(_initCalled, 'Prefs.init() must be called first!');
assert(_prefsInstance != null,
'Maybe call Prefs.getStringListF(key) instead. SharedPreferences not ready yet!');
return _prefsInstance?.getStringList(key) ?? defValue ?? [''];
}