getStringList method
获取保存字符串列表
Implementation
Future<List<String>?> getStringList(String key) async {
// obtain shared preferences
final prefs = await SharedPreferences.getInstance();
var value = prefs.getStringList(key);
return Future.value(value);
}