KeyValueNotifer<K, V>.withNotifier constructor
KeyValueNotifer<K, V>.withNotifier (
- ValueNotifierBase<
V> notifier
Initialize this KeyValueNotifer with notifier
as it's internal ValueNotifierBase.
Implementation
KeyValueNotifer.withNotifier(ValueNotifierBase<V> notifier)
: _listeners = const {},
_notifier = notifier {
_notifier.addValueListener(_internalValueListener);
}