NodeProvider<N extends NodeInterface> constructor

NodeProvider<N extends NodeInterface>({
  1. Key? key,
  2. required N create(),
  3. required Widget? child,
})

Use this widget to create a node and provide it to the widget tree

Implementation

NodeProvider({super.key, required N Function() create, required this.child})
  : builder = null,
    nodes = [create],
    reuse = false;