getStoreByKey function

Future<String?> getStoreByKey(
  1. String k
)

Implementation

Future<String?> getStoreByKey(String k) async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  return prefs.get(k) as String;
}