GrabListenableExtension extension

Extension on Listenable to provide methods for Grab.

on

Methods

grab<R extends Listenable>(BuildContext context) → R
Returns the Listenable itself that this method was called on, and starts listening for changes in the Listenable to rebuild the widget associated with the provided BuildContext when there is a change.
grabAt<R extends Listenable, S>(BuildContext context, GrabSelector<R, S> selector) → S
Returns an object chosen with the selector, and starts listening for changes in the Listenable to rebuild the widget associated with the provided BuildContext when there is a change in the selected object.