regSub<Model extends Pub> method
Add a create method to the subMap with the key:o
.
Implementation
void regSub<Model extends Pub>(Object o, CreatorFn<Model> sub) {
assert(ifModelTypeCorrect(Model, 'regSub'));
assert(shouldNull(_subMap[o], 'regSub: Duplicate key, subMap[$o]'));
_subMap[o] = sub;
}