get method

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

Implementation

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