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