getStringList static method

List<String> getStringList(
  1. String key
)

Get a string list value by key

Implementation

static List<String> getStringList(String key) {
  if (!_isInitialized || _prefs == null) return const [];
  return _prefs!.getStringList(key) ?? const [];
}