PrfIso<T> constructor

PrfIso<T>(
  1. String key, {
  2. T? defaultValue,
})

Creates a new isolate-safe preference object with the given key and optional defaultValue.

Implementation

PrfIso(super.key, {super.defaultValue}) : _customAdapter = null {
  _resolvedAdapter = PrfAdapterMap.instance.of<T>();
}