WatchBoxBuilder constructor
const
WatchBoxBuilder({
- Key? key,
- required Box box,
- required BoxWidgetBuilder builder,
- List<
String> ? watchKeys,
Creates a widget that rebuilds itself when a value in the box
changes.
If you specify watchKeys
, the widget only refreshes when a value
associated to a key in watchKeys
changes.
Implementation
const WatchBoxBuilder({
super.key,
required this.box,
required this.builder,
this.watchKeys,
});