fromSharedObject method

F fromSharedObject(
  1. O o
)

Implementation

F fromSharedObject(O o) {
  var field = fromID(o.id, reference: o.sharedReference() as R);
  var o2 = field.sharedObject;

  if (!identical(o, o2)) {
    throw StateError(
        "Parameter `$O` instance is NOT the same of `$F.sharedObject`> $o != ${field.sharedObject}");
  }
  return field;
}