toWidget method
Render a Widget from node
Implementation
Widget toWidget({
required final BuildContext context,
required final WidgetState state,
}) {
return ValueListenableBuilder(
valueListenable: _attributesNotifier,
builder: (BuildContext context, NodeAttributes attributes, Widget? _) {
return adapter.toWidget(
context: context,
state: state.copyWith(node: this),
);
},
child: adapter.toWidget(
context: context,
state: state.copyWith(node: this),
),
);
}