watchDouble static method
Preference notifier that starts with the current double value for the
given key, then emits a new value every time there are chanegs to the
value associated with the given key.
Implementation
static PreferenceNotifier<double> watchDouble(
Ref ref,
String key, {
required double defaultValue,
}) {
return SharedPreferenceNotifier._(
ref,
(sharedPref) => sharedPref.getDouble(key, defaultValue: defaultValue),
defaultValue,
);
}