InstanceNode constructor
InstanceNode({
- String? type,
- ComponentNode? mainComponent,
- Object? componentProperties,
- num? scaleFactor,
- List<
InstanceNode> ? exposedInstances, - bool? isExposedInstance,
- List<
IInline92> ? overrides, - InstanceNode clone()?,
- Future<
ComponentNode?> getMainComponentAsync()?, - void swapComponent()?,
- void setProperties()?,
- FrameNode detachInstance()?,
- void resetOverrides()?,
- 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,
);