getString static method

String? getString(
  1. String key, {
  2. String defValue = '',
})

get string.

Implementation

static String? getString(String key, {String defValue: ''}) {
  if (_prefs == null) return defValue;
  return _prefs?.getString(key) ?? defValue;
}