InstanceNode constructor

InstanceNode({
  1. String? type,
  2. ComponentNode? mainComponent,
  3. Object? componentProperties,
  4. num? scaleFactor,
  5. List<InstanceNode>? exposedInstances,
  6. bool? isExposedInstance,
  7. List<IInline92>? overrides,
  8. InstanceNode clone()?,
  9. Future<ComponentNode?> getMainComponentAsync()?,
  10. void swapComponent(
    1. ComponentNode
    )?,
  11. void setProperties(
    1. Object
    )?,
  12. FrameNode detachInstance()?,
  13. void resetOverrides()?,
  14. Object? variantProperties,
})

Implementation

factory InstanceNode({
  _i2.String? type,
  _i3.ComponentNode? mainComponent,
  _i2.Object? componentProperties,
  _i2.num? scaleFactor,
  _i2.List<_i3.InstanceNode>? exposedInstances,
  _i2.bool? isExposedInstance,
  _i2.List<_i3.IInline92>? overrides,
  _i3.InstanceNode Function()? clone,
  _i2.Future<_i3.ComponentNode?> Function()? getMainComponentAsync,
  void Function(_i3.ComponentNode)? swapComponent,
  void Function(_i2.Object)? setProperties,
  _i3.FrameNode Function()? detachInstance,
  void Function()? resetOverrides,
  _i2.Object? variantProperties,
}) =>
    InstanceNode._(
      type: type,
      mainComponent: mainComponent ?? _i7.undefined,
      componentProperties: componentProperties ?? _i7.undefined,
      scaleFactor: scaleFactor,
      exposedInstances: exposedInstances,
      isExposedInstance: isExposedInstance,
      overrides: overrides,
      clone: clone == null ? null : _i5.allowInterop(clone),
      getMainComponentAsync: getMainComponentAsync == null
          ? null
          : _i5.allowInterop(getMainComponentAsync),
      swapComponent:
          swapComponent == null ? null : _i5.allowInterop(swapComponent),
      setProperties:
          setProperties == null ? null : _i5.allowInterop(setProperties),
      detachInstance:
          detachInstance == null ? null : _i5.allowInterop(detachInstance),
      resetOverrides:
          resetOverrides == null ? null : _i5.allowInterop(resetOverrides),
      variantProperties: variantProperties ?? _i7.undefined,
    );