FFShaderProperties constructor

FFShaderProperties({
  1. FFStringValue? pathValue,
  2. FFSourceType? source,
  3. FFShaderMode? shaderMode,
  4. FFShaderPresetType? presetType,
  5. Iterable<FFShaderParam>? params,
  6. FFColorValue? backgroundColorValue,
  7. FFShaderAnimationMode? animationMode,
  8. FFBooleanValue? cacheValue,
  9. FFBooleanValue? interactiveValue,
  10. FFVariable? animationVariable,
  11. FFCurve? animationCurve,
  12. FFDoubleValue? animationDurationValue,
  13. FFDoubleValue? animationDelayValue,
  14. FFDoubleValue? timeValue,
  15. FFBooleanValue? persistTapsValue,
  16. FFBooleanValue? animationLoopValue,
  17. FFBooleanValue? animationReverseValue,
  18. FFBooleanValue? animationInvertValue,
  19. FFDoubleValue? animationRangeStartValue,
  20. FFDoubleValue? animationRangeEndValue,
  21. bool? animateParams,
  22. FFCurve? paramsAnimationCurve,
  23. FFDoubleValue? paramsAnimationDurationValue,
  24. FFCurve? tapAnimationCurve,
  25. FFDoubleValue? tapAnimationDurationValue,
  26. FFDoubleValue? tapAnimationDelayValue,
  27. FFBooleanValue? tapAnimationReverseValue,
  28. FFBooleanValue? tapAnimationInvertValue,
  29. FFDoubleValue? tapAnimationRangeStartValue,
  30. FFDoubleValue? tapAnimationRangeEndValue,
  31. Iterable<FFDoubleValue>? customUniformValues,
})

Implementation

factory FFShaderProperties({
  FFStringValue? pathValue,
  FFSourceType? source,
  FFShaderMode? shaderMode,
  FFShaderPresetType? presetType,
  $core.Iterable<FFShaderParam>? params,
  FFColorValue? backgroundColorValue,
  FFShaderAnimationMode? animationMode,
  FFBooleanValue? cacheValue,
  FFBooleanValue? interactiveValue,
  FFVariable? animationVariable,
  FFCurve? animationCurve,
  FFDoubleValue? animationDurationValue,
  FFDoubleValue? animationDelayValue,
  FFDoubleValue? timeValue,
  FFBooleanValue? persistTapsValue,
  FFBooleanValue? animationLoopValue,
  FFBooleanValue? animationReverseValue,
  FFBooleanValue? animationInvertValue,
  FFDoubleValue? animationRangeStartValue,
  FFDoubleValue? animationRangeEndValue,
  $core.bool? animateParams,
  FFCurve? paramsAnimationCurve,
  FFDoubleValue? paramsAnimationDurationValue,
  FFCurve? tapAnimationCurve,
  FFDoubleValue? tapAnimationDurationValue,
  FFDoubleValue? tapAnimationDelayValue,
  FFBooleanValue? tapAnimationReverseValue,
  FFBooleanValue? tapAnimationInvertValue,
  FFDoubleValue? tapAnimationRangeStartValue,
  FFDoubleValue? tapAnimationRangeEndValue,
  $core.Iterable<FFDoubleValue>? customUniformValues,
}) {
  final result = create();
  if (pathValue != null) result.pathValue = pathValue;
  if (source != null) result.source = source;
  if (shaderMode != null) result.shaderMode = shaderMode;
  if (presetType != null) result.presetType = presetType;
  if (params != null) result.params.addAll(params);
  if (backgroundColorValue != null)
    result.backgroundColorValue = backgroundColorValue;
  if (animationMode != null) result.animationMode = animationMode;
  if (cacheValue != null) result.cacheValue = cacheValue;
  if (interactiveValue != null) result.interactiveValue = interactiveValue;
  if (animationVariable != null) result.animationVariable = animationVariable;
  if (animationCurve != null) result.animationCurve = animationCurve;
  if (animationDurationValue != null)
    result.animationDurationValue = animationDurationValue;
  if (animationDelayValue != null)
    result.animationDelayValue = animationDelayValue;
  if (timeValue != null) result.timeValue = timeValue;
  if (persistTapsValue != null) result.persistTapsValue = persistTapsValue;
  if (animationLoopValue != null)
    result.animationLoopValue = animationLoopValue;
  if (animationReverseValue != null)
    result.animationReverseValue = animationReverseValue;
  if (animationInvertValue != null)
    result.animationInvertValue = animationInvertValue;
  if (animationRangeStartValue != null)
    result.animationRangeStartValue = animationRangeStartValue;
  if (animationRangeEndValue != null)
    result.animationRangeEndValue = animationRangeEndValue;
  if (animateParams != null) result.animateParams = animateParams;
  if (paramsAnimationCurve != null)
    result.paramsAnimationCurve = paramsAnimationCurve;
  if (paramsAnimationDurationValue != null)
    result.paramsAnimationDurationValue = paramsAnimationDurationValue;
  if (tapAnimationCurve != null) result.tapAnimationCurve = tapAnimationCurve;
  if (tapAnimationDurationValue != null)
    result.tapAnimationDurationValue = tapAnimationDurationValue;
  if (tapAnimationDelayValue != null)
    result.tapAnimationDelayValue = tapAnimationDelayValue;
  if (tapAnimationReverseValue != null)
    result.tapAnimationReverseValue = tapAnimationReverseValue;
  if (tapAnimationInvertValue != null)
    result.tapAnimationInvertValue = tapAnimationInvertValue;
  if (tapAnimationRangeStartValue != null)
    result.tapAnimationRangeStartValue = tapAnimationRangeStartValue;
  if (tapAnimationRangeEndValue != null)
    result.tapAnimationRangeEndValue = tapAnimationRangeEndValue;
  if (customUniformValues != null)
    result.customUniformValues.addAll(customUniformValues);
  return result;
}