CustomWidgetBuilder typedef

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.

By default, the widget will be rendered as a block element. Wrap custom widget in a InlineCustomWidget to make it inline.

Implementation

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