register method

void register(
  1. NiceViewComponentType type,
  2. NiceComponentBuilder builder
)

Register a builder for a NiceViewComponentType enum value.

Implementation

void register(NiceViewComponentType type, NiceComponentBuilder builder) {
  _builders[type.name] = builder;
}