NodeProvider<N extends NodeInterface>.builder constructor
NodeProvider<N extends NodeInterface>.builder ({
- Key? key,
- required N create(),
- required Widget builder(
- BuildContext context,
- N node
You can use NodeProvider.builder if you need to build the widget tree and access directly to the node.
It won't rebuild the widget tree
Implementation
NodeProvider.builder({
super.key,
required N Function() create,
required this.builder,
}) : child = null,
reuse = false,
nodes = [create];