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