setStringList static method

Future<List<String>?> setStringList(
  1. String key,
  2. List<String> value
)

Implementation

static Future<List<String>?> setStringList(String key, List<String> value) async {
  _cache[key] = value;
  prefs!.setStringList(key, value);
  return getStringList(key);
}