ValueNotifierToRef<T> extension
An extension that allows converting a ValueNotifier to a Ref.
- on
Methods
-
toRef(
) → Ref< T> -
Available on ValueNotifier<
Returns a Ref object that mirrors the current value of this ValueNotifier. If a Ref object already exists for this ValueNotifier, it is returned. Otherwise, a new Ref object is created, stored, and returned. The Ref object's value is updated whenever this ValueNotifier's value changes.T> , provided by the ValueNotifierToRef extension