ComponentNode constructor

ComponentNode({
  1. String? type,
  2. List<InstanceNode>? instances,
  3. ComponentNode clone()?,
  4. InstanceNode createInstance()?,
  5. Future<List<InstanceNode>> getInstancesAsync()?,
  6. String? description,
  7. String? descriptionMarkdown,
  8. ReadonlyArray<DocumentationLink>? documentationLinks,
  9. bool? remote,
  10. String? key,
  11. Future<PublishStatus> getPublishStatusAsync()?,
  12. Object? variantProperties,
  13. Object? componentPropertyDefinitions,
  14. String addComponentProperty(
    1. String,
    2. ComponentPropertyType,
    3. Object, [
    4. ComponentPropertyOptions?,
    ])?,
  15. String editComponentProperty(
    1. String,
    2. dynamic
    )?,
  16. void deleteComponentProperty(
    1. String
    )?,
})

Implementation

factory ComponentNode({
  _i2.String? type,
  _i2.List<_i3.InstanceNode>? instances,
  _i3.ComponentNode Function()? clone,
  _i3.InstanceNode Function()? createInstance,
  _i2.Future<_i2.List<_i3.InstanceNode>> Function()? getInstancesAsync,
  _i2.String? description,
  _i2.String? descriptionMarkdown,
  _i4.ReadonlyArray<_i3.DocumentationLink>? documentationLinks,
  _i2.bool? remote,
  _i2.String? key,
  _i2.Future<_i3.PublishStatus> Function()? getPublishStatusAsync,
  _i2.Object? variantProperties,
  _i2.Object? componentPropertyDefinitions,
  _i2.String Function(
    _i2.String,
    _i3.ComponentPropertyType,
    _i2.Object, [
    _i3.ComponentPropertyOptions?,
  ])? addComponentProperty,
  _i2.String Function(
    _i2.String,
    _i2.dynamic,
  )? editComponentProperty,
  void Function(_i2.String)? deleteComponentProperty,
}) =>
    ComponentNode._(
      type: type,
      instances: instances,
      clone: clone == null ? null : _i5.allowInterop(clone),
      createInstance:
          createInstance == null ? null : _i5.allowInterop(createInstance),
      getInstancesAsync: getInstancesAsync == null
          ? null
          : _i5.allowInterop(getInstancesAsync),
      description: description,
      descriptionMarkdown: descriptionMarkdown,
      documentationLinks: documentationLinks ?? _i7.undefined,
      remote: remote,
      key: key,
      getPublishStatusAsync: getPublishStatusAsync == null
          ? null
          : _i5.allowInterop(getPublishStatusAsync),
      variantProperties: variantProperties ?? _i7.undefined,
      componentPropertyDefinitions:
          componentPropertyDefinitions ?? _i7.undefined,
      addComponentProperty: addComponentProperty == null
          ? null
          : _i5.allowInterop(addComponentProperty),
      editComponentProperty: editComponentProperty == null
          ? null
          : _i5.allowInterop(editComponentProperty),
      deleteComponentProperty: deleteComponentProperty == null
          ? null
          : _i5.allowInterop(deleteComponentProperty),
    );