getItem static method

String? getItem(
  1. String key
)

Implementation

static String? getItem(String key) {
  if (prefs == null) return null;
  if (!prefs!.containsKey(key)) return null;
  return prefs!.getString(key);
}