getString static method

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

get string.

Implementation

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