defaultStyles property

DefaultStyles? defaultStyles
final

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

final DefaultStyles? defaultStyles;