setType static method

dynamic setType(
  1. Type className,
  2. InstanceConstructor<DataModel> constructor
)

Implementation

static setType(Type className, InstanceConstructor constructor) {
  _modelTypes[className] = ModelType(constructor: constructor);
}