useListenable<T extends Listenable?> function

T useListenable<T extends Listenable?>(
  1. T listenable
)

Subscribes to a Listenable and marks the widget as needing build whenever the listener is called.

See also:

Implementation

T useListenable<T extends Listenable?>(T listenable) {
  use(_ListenableHook(listenable));
  return listenable;
}