toWidget method
Create a Widget which depends on the cell's value.
The builder function, see ValueListenable.builder for details
of the arguments, is called with the cells value to build the widget.
Whenever the value of the cell changes, the builder function is called
to rebuild the widget.
If child is non-null it is passed as the third argument to the
builder function. This is a Widget which is inserted in the
Widget tree returned by the builder function but does not depend
on the value of the cell and hence should not be rebuilt if the cell
value changes.
Implementation
Widget toWidget(ValueWidgetBuilder<T> builder, {
Widget? child
}) => CellListenerWidget(
cell: this,
builder: builder,
child: child
);