read static method

Future<String> read(
  1. String key
)

Implementation

static Future<String> read(String key) async {
  final pref = await SharedPreferences.getInstance();
  return pref.getString(key) ?? "";
}