Resource constructor

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

Implementation

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