registerSpecSubType method

  1. @nonVirtual
void registerSpecSubType(
  1. String baseType,
  2. String name,
  3. SpecBuildFunction func,
  4. Map<String, EditorPropertyType> properties,
)

Method for registering a subtype of an existing property with its own resolver.

Implementation

@nonVirtual
void registerSpecSubType(String baseType, String name, SpecBuildFunction func,
    Map<String, EditorPropertyType> properties) {
  _propertyBuilders[name] = func;
  _schema[name] = EditorSpecProperty(properties, baseType: baseType);
}