ImageExtension allows you to extend the built-in support by
providing a custom way to render a specific selection of attributes
or providing headers or asset package/bundle specifications.
See ImageExtension. The only difference is that this method allows you
to directly pass an InlineSpan through child or builder, allowing you
to construct more seamless extensions.
Tells the HtmlParser what additional tags to add to the default
supported tag list (the extension's user can still override this by
setting an explicit tagList on the Html widget).
Called after styling, but before extra elements/whitespace has been
removed, margins collapsed, list characters processed, or relative
values calculated. Default behavior: do nothing;
The final step in the chain. Converts the StyledElement tree, with its
attached Style elements, into an InlineSpan tree that includes
Widget/TextSpans that can be rendered in a RichText widget.
Called when the Html widget is being destroyed. This would be a very
good place to dispose() any controllers or free any resources that
the extension uses. Default behavior: do nothing.