saveListString static method

dynamic saveListString(
  1. String key,
  2. List<String> value
)

Implementation

static saveListString(String key, List<String> value) async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  prefs.setStringList(key, value);
}