ManagedSet.from(Iterable<InstanceType> items)

Creates a ManagedSet from an Iterable of InstanceTypes.

Source

ManagedSet.from(Iterable<InstanceType> items) {
  _innerValues = items.toList();
  entity =
      ManagedContext.defaultContext.dataModel.entityForType(InstanceType);
}