getStringArray static method

Future<List<String>?> getStringArray(
  1. String key
)

Implementation

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