Resource constructor

Resource({
  1. Iterable<KeyValue>? attributes,
  2. int? droppedAttributesCount,
  3. Iterable<EntityRef>? entityRefs,
})

Implementation

factory Resource({
  $core.Iterable<$0.KeyValue>? attributes,
  $core.int? droppedAttributesCount,
  $core.Iterable<$0.EntityRef>? entityRefs,
}) {
  final result = create();
  if (attributes != null) result.attributes.addAll(attributes);
  if (droppedAttributesCount != null)
    result.droppedAttributesCount = droppedAttributesCount;
  if (entityRefs != null) result.entityRefs.addAll(entityRefs);
  return result;
}