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;
}