WatchBoxBuilder constructor

WatchBoxBuilder({
  1. Key? key,
  2. required Box box,
  3. required BoxWidgetBuilder builder,
  4. 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);