addCustom static method

void addCustom(
  1. Map<String, EasyAttribute<Object?>> attrs
)

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);
}