getDynamic static method

dynamic getDynamic(
  1. String key, {
  2. required Object defValue,
})

get dynamic.

Implementation

static dynamic getDynamic(String key, {required Object defValue}) {
  return _prefs.get(key) ?? defValue;
}