DefaultShapeMixin constructor

DefaultShapeMixin({
  1. String? id,
  2. _Intersection7? parent,
  3. String? name,
  4. bool? removed,
  5. bool? isAsset,
  6. String toString$()?,
  7. void remove()?,
  8. void setRelaunchData(
    1. Object
    )?,
  9. Object getRelaunchData()?,
  10. Future<Object> getCSSAsync()?,
  11. FrameNode? getTopLevelFrame()?,
  12. bool? visible,
  13. bool? locked,
  14. List<SceneNode>? stuckNodes,
  15. List<ConnectorNode>? attachedConnectors,
  16. dynamic componentPropertyReferences,
  17. _Intersection8? boundVariables,
  18. _Intersection9? inferredVariables,
  19. Object? resolvedVariableModes,
  20. ReadonlyArray<Reaction>? reactions,
  21. Future<void> setReactionsAsync(
    1. Array<Reaction>
    )?,
  22. bool? isMask,
  23. MaskType? maskType,
  24. ReadonlyArray<Object>? effects,
  25. String? effectStyleId,
  26. Future<void> setEffectStyleIdAsync(
    1. String
    )?,
  27. Object? strokeCap,
  28. num? strokeMiterLimit,
  29. VectorPaths? fillGeometry,
  30. VectorNode? outlineStroke()?,
  31. Rect? absoluteRenderBounds,
  32. bool? constrainProportions,
  33. num? rotation,
  34. LayoutSizingHorizontal? layoutSizingHorizontal,
  35. LayoutSizingVertical? layoutSizingVertical,
  36. void resize(
    1. num,
    2. num
    )?,
  37. void resizeWithoutConstraints(
    1. num,
    2. num
    )?,
  38. void rescale(
    1. num
    )?,
  39. ReadonlyArray<Object>? exportSettings,
})

Implementation

factory DefaultShapeMixin({
  _i2.String? id,
  _Intersection7? parent,
  _i2.String? name,
  _i2.bool? removed,
  _i2.bool? isAsset,
  _i2.String Function()? toString$,
  void Function()? remove,
  void Function(_i2.Object)? setRelaunchData,
  _i2.Object Function()? getRelaunchData,
  _i2.Future<_i2.Object> Function()? getCSSAsync,
  _i3.FrameNode? Function()? getTopLevelFrame,
  _i2.bool? visible,
  _i2.bool? locked,
  _i2.List<_i3.SceneNode>? stuckNodes,
  _i2.List<_i3.ConnectorNode>? attachedConnectors,
  _i2.dynamic componentPropertyReferences,
  _Intersection8? boundVariables,
  _Intersection9? inferredVariables,
  _i2.Object? resolvedVariableModes,
  _i4.ReadonlyArray<_i3.Reaction>? reactions,
  _i2.Future<void> Function(_i4.Array<_i3.Reaction>)? setReactionsAsync,
  _i2.bool? isMask,
  _i3.MaskType? maskType,
  _i4.ReadonlyArray<_i2.Object>? effects,
  _i2.String? effectStyleId,
  _i2.Future<void> Function(_i2.String)? setEffectStyleIdAsync,
  _i2.Object? strokeCap,
  _i2.num? strokeMiterLimit,
  _i3.VectorPaths? fillGeometry,
  _i3.VectorNode? Function()? outlineStroke,
  _i3.Rect? absoluteRenderBounds,
  _i2.bool? constrainProportions,
  _i2.num? rotation,
  _i3.LayoutSizingHorizontal? layoutSizingHorizontal,
  _i3.LayoutSizingVertical? layoutSizingVertical,
  void Function(
    _i2.num,
    _i2.num,
  )? resize,
  void Function(
    _i2.num,
    _i2.num,
  )? resizeWithoutConstraints,
  void Function(_i2.num)? rescale,
  _i4.ReadonlyArray<_i2.Object>? exportSettings,
}) =>
    DefaultShapeMixin._(
      id: id,
      parent: parent ?? _i7.undefined,
      name: name,
      removed: removed,
      isAsset: isAsset,
      toString$: toString$ == null ? null : _i5.allowInterop(toString$),
      remove: remove == null ? null : _i5.allowInterop(remove),
      setRelaunchData:
          setRelaunchData == null ? null : _i5.allowInterop(setRelaunchData),
      getRelaunchData:
          getRelaunchData == null ? null : _i5.allowInterop(getRelaunchData),
      getCSSAsync: getCSSAsync == null ? null : _i5.allowInterop(getCSSAsync),
      getTopLevelFrame: getTopLevelFrame == null
          ? null
          : _i5.allowInterop(() => () => getTopLevelFrame() ?? _i7.undefined),
      visible: visible,
      locked: locked,
      stuckNodes: stuckNodes,
      attachedConnectors: attachedConnectors,
      componentPropertyReferences: componentPropertyReferences,
      boundVariables: boundVariables ?? _i7.undefined,
      inferredVariables: inferredVariables ?? _i7.undefined,
      resolvedVariableModes: resolvedVariableModes ?? _i7.undefined,
      reactions: reactions ?? _i7.undefined,
      setReactionsAsync: setReactionsAsync == null
          ? null
          : _i5.allowInterop(setReactionsAsync),
      isMask: isMask,
      maskType: maskType?.name ?? _i7.undefined,
      effects: effects ?? _i7.undefined,
      effectStyleId: effectStyleId,
      setEffectStyleIdAsync: setEffectStyleIdAsync == null
          ? null
          : _i5.allowInterop(setEffectStyleIdAsync),
      strokeCap: strokeCap ?? _i7.undefined,
      strokeMiterLimit: strokeMiterLimit,
      fillGeometry: fillGeometry ?? _i7.undefined,
      outlineStroke: outlineStroke == null
          ? null
          : _i5.allowInterop(() => () => outlineStroke() ?? _i7.undefined),
      absoluteRenderBounds: absoluteRenderBounds ?? _i7.undefined,
      constrainProportions: constrainProportions,
      rotation: rotation,
      layoutSizingHorizontal: layoutSizingHorizontal?.name ?? _i7.undefined,
      layoutSizingVertical: layoutSizingVertical?.name ?? _i7.undefined,
      resize: resize == null ? null : _i5.allowInterop(resize),
      resizeWithoutConstraints: resizeWithoutConstraints == null
          ? null
          : _i5.allowInterop(resizeWithoutConstraints),
      rescale: rescale == null ? null : _i5.allowInterop(rescale),
      exportSettings: exportSettings ?? _i7.undefined,
    );