registerCustomBuilder method

void registerCustomBuilder(
  1. String type,
  2. JsonWidgetBuilderContainer container
)

Registers the widget type with the registry to that type can be used in custom forms. Types registered by the application take precidence over built in registered builders. This allows an application the ability to provide custom widgets even for built in form types.

If the container has an associated schema id then in DEBUG builds, that schema will be used to validate the attributes sent to the builder.

Implementation

void registerCustomBuilder(
  String type,
  JsonWidgetBuilderContainer container,
) =>
    _builders[type] = container;