readStringList static method

Future<List<String>> readStringList(
  1. String key
)

Implementation

static Future<List<String>> readStringList(String key) async {
  final prefs = await SharedPreferences.getInstance();
  return prefs.getStringList(key) ?? List.empty();
}