addCustom static method
Adds custom attributes to the global attribute registry.
Use this method to register your custom attributes so they can be serialized, deserialized, and used throughout the EasyText system.
Example:
EasyAttribute.addCustom({
'highlight': HighlightAttribute(),
'customStyle': CustomStyleAttribute(),
});
Implementation
static void addCustom(Map<String, EasyAttribute> attrs) {
_customAttributes.addAll(attrs);
}