registerValueSpecSubType method

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

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

Implementation

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