GrabValueListenableExtension<R> extension
Extension on ValueListenable to provide methods for Grab.
- on
Methods
-
grab(
BuildContext context) → R -
Returns the
value
of the ValueListenable that this method was called on, and starts listening for changes in theValueListenable
to rebuild the widget associated with the provided BuildContext when there is a change in thevalue
of theValueListenable
. -
grabAt<
S> (BuildContext context, GrabSelector< R, S> selector) → S -
Returns an object chosen with the
selector
, and starts listening for changes in the ValueListenable to rebuild the widget associated with the provided BuildContext when there is a change in the selected object.