Watch<T extends Widget> constructor
const
Watch<T extends Widget> (
- T builder(
- BuildContext context
- Key? key,
- String? debugLabel,
- List<
ReadonlySignal> dependencies = const [],
Minimal builder for signal changes that rerender a widget tree.
final counter = signal(0);
...
Watch((context) => Text('$counter'))
Implementation
const Watch(
this.builder, {
super.key,
this.debugLabel,
this.dependencies = const [],
});