customAdapter<T> static method
Creates a new preference using a custom adapter.
Implementation
static Prf<T> customAdapter<T>(
String key, {
required PrfAdapter<T> adapter,
T? defaultValue,
}) {
return Prf._withAdapter(
key,
adapter: adapter,
defaultValue: defaultValue,
);
}