Variable constructor

Variable({
  1. String? id,
  2. String? name,
  3. String? description,
  4. bool? hiddenFromPublishing,
  5. bool? remote,
  6. String? variableCollectionId,
  7. String? key,
  8. VariableResolvedDataType? resolvedType,
  9. Object? valuesByMode,
  10. Array<VariableScope>? scopes,
  11. dynamic codeSyntax,
  12. Future<PublishStatus> getPublishStatusAsync()?,
  13. dynamic resolveForConsumer(
    1. SceneNode
    )?,
  14. void setValueForMode(
    1. String,
    2. Object
    )?,
  15. void remove()?,
  16. void setVariableCodeSyntax(
    1. CodeSyntaxPlatform,
    2. String
    )?,
  17. void removeVariableCodeSyntax(
    1. CodeSyntaxPlatform
    )?,
  18. String getPluginData(
    1. String
    )?,
  19. void setPluginData(
    1. String,
    2. String
    )?,
  20. List<String> getPluginDataKeys()?,
  21. String getSharedPluginData(
    1. String,
    2. String
    )?,
  22. void setSharedPluginData(
    1. String,
    2. String,
    3. String
    )?,
  23. List<String> getSharedPluginDataKeys(
    1. String
    )?,
})

Implementation

factory Variable({
  _i2.String? id,
  _i2.String? name,
  _i2.String? description,
  _i2.bool? hiddenFromPublishing,
  _i2.bool? remote,
  _i2.String? variableCollectionId,
  _i2.String? key,
  _i3.VariableResolvedDataType? resolvedType,
  _i2.Object? valuesByMode,
  _i4.Array<_i3.VariableScope>? scopes,
  _i2.dynamic codeSyntax,
  _i2.Future<_i3.PublishStatus> Function()? getPublishStatusAsync,
  _i2.dynamic Function(_i3.SceneNode)? resolveForConsumer,
  void Function(
    _i2.String,
    _i2.Object,
  )? setValueForMode,
  void Function()? remove,
  void Function(
    _i3.CodeSyntaxPlatform,
    _i2.String,
  )? setVariableCodeSyntax,
  void Function(_i3.CodeSyntaxPlatform)? removeVariableCodeSyntax,
  _i2.String Function(_i2.String)? getPluginData,
  void Function(
    _i2.String,
    _i2.String,
  )? setPluginData,
  _i2.List<_i2.String> Function()? getPluginDataKeys,
  _i2.String Function(
    _i2.String,
    _i2.String,
  )? getSharedPluginData,
  void Function(
    _i2.String,
    _i2.String,
    _i2.String,
  )? setSharedPluginData,
  _i2.List<_i2.String> Function(_i2.String)? getSharedPluginDataKeys,
}) =>
    Variable._(
      id: id,
      name: name,
      description: description,
      hiddenFromPublishing: hiddenFromPublishing,
      remote: remote,
      variableCollectionId: variableCollectionId,
      key: key,
      resolvedType: resolvedType?.name ?? _i7.undefined,
      valuesByMode: valuesByMode ?? _i7.undefined,
      scopes: scopes ?? _i7.undefined,
      codeSyntax: codeSyntax,
      getPublishStatusAsync: getPublishStatusAsync == null
          ? null
          : _i5.allowInterop(getPublishStatusAsync),
      resolveForConsumer: resolveForConsumer == null
          ? null
          : _i5.allowInterop(resolveForConsumer),
      setValueForMode:
          setValueForMode == null ? null : _i5.allowInterop(setValueForMode),
      remove: remove == null ? null : _i5.allowInterop(remove),
      setVariableCodeSyntax: setVariableCodeSyntax == null
          ? null
          : _i5.allowInterop(setVariableCodeSyntax),
      removeVariableCodeSyntax: removeVariableCodeSyntax == null
          ? null
          : _i5.allowInterop(removeVariableCodeSyntax),
      getPluginData:
          getPluginData == null ? null : _i5.allowInterop(getPluginData),
      setPluginData:
          setPluginData == null ? null : _i5.allowInterop(setPluginData),
      getPluginDataKeys: getPluginDataKeys == null
          ? null
          : _i5.allowInterop(getPluginDataKeys),
      getSharedPluginData: getSharedPluginData == null
          ? null
          : _i5.allowInterop(getSharedPluginData),
      setSharedPluginData: setSharedPluginData == null
          ? null
          : _i5.allowInterop(setSharedPluginData),
      getSharedPluginDataKeys: getSharedPluginDataKeys == null
          ? null
          : _i5.allowInterop(getSharedPluginDataKeys),
    );