get static method

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

Implementation

static Future<String?> get(String key) async {
  final SharedPreferences prefs = await SharedPreferences.getInstance();
  final String? value = prefs.getString(key);
  if (value == null) {
    // ignore: avoid_print
    print('[CuRe Storage] Key not found: $key');
  }
  return value;
}