toValueNotifier method

ValueNotifier<T> toValueNotifier()

Converts this to a ValueNotifier

Implementation

ValueNotifier<T> toValueNotifier() {
  final notifier = _toValueNotifier(this);

  notifier.addListener(() => set(notifier.value));

  return notifier;
}