register static method

void register(
  1. String type,
  2. FormioComponentBuilder builder
)

Registers a single custom component builder.

Example:

ComponentFactory.register('textfield', MyCustomTextFieldBuilder());

type The component type identifier (e.g., 'textfield', 'number'). builder The component builder implementation.

Implementation

static void register(String type, FormioComponentBuilder builder) {
  _customComponents[type] = builder;
}