WatchBoxBuilder constructor
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
WatchBoxBuilder({
Key? key,
required this.box,
required this.builder,
this.watchKeys,
}) : super(key: key);