optStyle method
Implementation
@protected
TextStyle? optStyle(MarkupContext context, {bool enableTagAttr = true}) {
final styleMapper = this.styleMapper ?? context.styleMapper;
if (enableTagAttr) {
return context.getStyleBy(
tags,
fallbackKey: 'name',
styleMapper: styleMapper,
);
}
return context.getStyle('name', styleMapper);
}