readListFromCahce static method

Future<List<String>> readListFromCahce()

Implementation

static Future<List<String>> readListFromCahce() async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  List<String>? userStr = prefs.getStringList(_localIdentifier);
  userStr ??= <String>[];
  return Future.value(userStr);
}