simple<T> static method

Setting<T, T> simple<T>(
  1. Box box,
  2. String key, {
  3. required T defaultValue,
})

Implementation

static Setting<T, T> simple<T>(Box box, String key,
        {required T defaultValue}) =>
    Setting<T, T>(box, key,
        defaultValue: defaultValue, store: (t) => t, load: (u) => u);