get method

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

Implementation

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