listenable property
override
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.
link
To create a local project with this code sample, run:
flutter create --sample=widgets.ListenableBuilder.listenable.1 mysample
See also:
- AnimatedBuilder, a widget with identical functionality commonly used with Animation Listenables for better readability.
Implementation
//
// Overridden getter to replace with documentation tailored to
// ListenableBuilder.
@override
Listenable get listenable => super.listenable;