listen<T> method

T listen<T>()

Listens for state changes of type T and rebuilds the widget when it changes.

This method is used to listen for changes to a specific state type T and rebuilds the widget whenever the state changes.

Implementation

T listen<T>() => Bind.of(this, rebuild: true);