getCatch function

Future<String?> getCatch(
  1. String key
)

获取 sessionStorage 缓存

Implementation

Future<String?> getCatch(String key) async {
  final SharedPreferences prefs = await SharedPreferences.getInstance();
  return prefs.getString(key);
}