ComponentNode constructor
ComponentNode({
- String? type,
- List<
InstanceNode> ? instances, - ComponentNode clone()?,
- InstanceNode createInstance()?,
- Future<
List< getInstancesAsync()?,InstanceNode> > - String? description,
- String? descriptionMarkdown,
- ReadonlyArray<
DocumentationLink> ? documentationLinks, - bool? remote,
- String? key,
- Future<
PublishStatus> getPublishStatusAsync()?, - Object? variantProperties,
- Object? componentPropertyDefinitions,
- String addComponentProperty(])?,
- String editComponentProperty(
- String,
- dynamic
- void deleteComponentProperty()?,
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),
);