fromID method
Creates a SharedObjectField with id
.
Implementation
F fromID(String id, {R? reference}) {
var ref = _fieldsInstances[id];
if (ref != null) {
var o = ref.target;
if (o != null) return o;
}
var o = fieldInstantiator(id, sharedObjectReference: reference);
assert(identical(o, _fieldsInstances[id]?.target));
return o;
}