clone<K extends Core<CoreContext>> method

K? clone<K extends Core<CoreContext>>()
inherited

Make a duplicate of this core object, N.B. that all properties excluding object id are copied.

Implementation

K? clone<K extends Core>() {
  var object = context.makeCoreInstance(coreType);
  object?.copy(this);
  return object is K ? object : null;
}