FFVariable constructor

FFVariable({
  1. FFVariableSource? source,
  2. @Deprecated('This field is deprecated.') String? legacyNodeKey,
  3. @Deprecated('This field is deprecated.') FFParameter? legacyInitialParameter,
  4. @Deprecated('This field is deprecated.') Iterable<FFParamReducer>? legacyReducers,
  5. @Deprecated('This field is deprecated.') FFFunctionCall? legacyFunctionCall,
  6. FFParameterValue? defaultValue,
  7. @Deprecated('This field is deprecated.') FFRandomData? legacyRandomData,
  8. FFBaseVariable? baseVariable,
  9. Iterable<FFVariableOperation>? operations,
  10. FFFunctionCall? functionCall,
  11. bool? hasBeenUpdated,
  12. FFNodeKeyPath? componentNodePath,
  13. Iterable<MapEntry<String, FFDynamicComponentAccess>>? dynamicComponentAccess,
  14. @Deprecated('This field is deprecated.') String? legacyDisplayName,
  15. @Deprecated('This field is deprecated.') String? legacyActionComponentKey,
  16. FFNodeKeyReference? nodeKeyRef,
  17. FFActionComponentKeyReference? actionComponentKeyRef,
  18. FFParameterValue? uiBuilderValue,
  19. String? description,
})

Implementation

factory FFVariable({
  FFVariableSource? source,
  @$core.Deprecated('This field is deprecated.') $core.String? legacyNodeKey,
  @$core.Deprecated('This field is deprecated.')
  FFParameter? legacyInitialParameter,
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<FFParamReducer>? legacyReducers,
  @$core.Deprecated('This field is deprecated.')
  FFFunctionCall? legacyFunctionCall,
  FFParameterValue? defaultValue,
  @$core.Deprecated('This field is deprecated.')
  FFRandomData? legacyRandomData,
  FFBaseVariable? baseVariable,
  $core.Iterable<FFVariableOperation>? operations,
  FFFunctionCall? functionCall,
  $core.bool? hasBeenUpdated,
  FFNodeKeyPath? componentNodePath,
  $core.Iterable<$core.MapEntry<$core.String, FFDynamicComponentAccess>>?
      dynamicComponentAccess,
  @$core.Deprecated('This field is deprecated.')
  $core.String? legacyDisplayName,
  @$core.Deprecated('This field is deprecated.')
  $core.String? legacyActionComponentKey,
  FFNodeKeyReference? nodeKeyRef,
  FFActionComponentKeyReference? actionComponentKeyRef,
  FFParameterValue? uiBuilderValue,
  $core.String? description,
}) {
  final result = create();
  if (source != null) result.source = source;
  if (legacyNodeKey != null) result.legacyNodeKey = legacyNodeKey;
  if (legacyInitialParameter != null)
    result.legacyInitialParameter = legacyInitialParameter;
  if (legacyReducers != null) result.legacyReducers.addAll(legacyReducers);
  if (legacyFunctionCall != null)
    result.legacyFunctionCall = legacyFunctionCall;
  if (defaultValue != null) result.defaultValue = defaultValue;
  if (legacyRandomData != null) result.legacyRandomData = legacyRandomData;
  if (baseVariable != null) result.baseVariable = baseVariable;
  if (operations != null) result.operations.addAll(operations);
  if (functionCall != null) result.functionCall = functionCall;
  if (hasBeenUpdated != null) result.hasBeenUpdated = hasBeenUpdated;
  if (componentNodePath != null) result.componentNodePath = componentNodePath;
  if (dynamicComponentAccess != null)
    result.dynamicComponentAccess.addEntries(dynamicComponentAccess);
  if (legacyDisplayName != null) result.legacyDisplayName = legacyDisplayName;
  if (legacyActionComponentKey != null)
    result.legacyActionComponentKey = legacyActionComponentKey;
  if (nodeKeyRef != null) result.nodeKeyRef = nodeKeyRef;
  if (actionComponentKeyRef != null)
    result.actionComponentKeyRef = actionComponentKeyRef;
  if (uiBuilderValue != null) result.uiBuilderValue = uiBuilderValue;
  if (description != null) result.description = description;
  return result;
}