defaultStyles property
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: (_) => {'color': 'red'},
)
Note: op must be registered early for this to work e.g.
in WidgetFactory.parseTag
or onChild.
Implementation
final Map Function(BuildMetadata meta) defaultStyles