NodeProvider<N extends NodeInterface>.builder constructor

NodeProvider<N extends NodeInterface>.builder({
  1. Key? key,
  2. required N create(),
  3. required Widget builder(
    1. BuildContext context,
    2. 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];