saveList static method

Future<void> saveList(
  1. String key,
  2. List<String> value
)

Implementation

static Future<void> saveList(String key, List<String> value) async {
  try {
    if (_pref == null) await _init();
    await _pref!.setStringList(key, value);
  } catch (e) {
    logs(e);
  }
}