PreferenceReader extension

Ergonomic, typed access to a single preference from the widget tree.

on

Methods

pref<T>(PrefKey<T> key) → T

Available on WidgetRef, provided by the PreferenceReader extension

Watches key and returns its effective value, typed via the key.