DefaultStyles typedef
DefaultStyles =
StylesMap Function(Element element)
The callback that should return default styling map.
See list of all supported inline stylings in README.md, the sample op below just changes the color:
BuildOp(
defaultStyles: (domElement) => {'color': 'red'},
)
Note: op must be registered early for this to work e.g.
in WidgetFactory.parse
or onVisitChild
.
Implementation
typedef DefaultStyles = StylesMap Function(dom.Element element);