CustomWidgetBuilder typedef Null safety

CustomWidgetBuilder = Widget? Function(Element element)

A callback to render custom widget for a DOM element.

This is suitable for fairly simple widget. Please note that you have to handle the DOM element and its children manually, if the children have HTML styling etc., they won't be processed at all. For those needs, a custom WidgetFactory is the way to go.


typedef CustomWidgetBuilder = Widget? Function(dom.Element element);