listenable property

  1. @override
Listenable listenable

The Listenable supplied to the constructor.

In this example, the listenable is a ChangeNotifier subclass that encapsulates a list. The ListenableBuilder is rebuilt each time an item is added to the list.

To create a local project with this code sample, run:
flutter create --sample=widgets.ListenableBuilder.listenable.1 mysample

See also:


// Overridden getter to replace with documentation tailored to
// ListenableBuilder.
Listenable get listenable => super.listenable;