clone<K extends Core<CoreContext>> method Null safety

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

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

Implementation

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