FFShaderProperties constructor
FFShaderProperties({
- FFStringValue? pathValue,
- FFSourceType? source,
- FFShaderMode? shaderMode,
- FFShaderPresetType? presetType,
- 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,
- bool? animateParams,
- FFCurve? paramsAnimationCurve,
- FFDoubleValue? paramsAnimationDurationValue,
- FFCurve? tapAnimationCurve,
- FFDoubleValue? tapAnimationDurationValue,
- FFDoubleValue? tapAnimationDelayValue,
- FFBooleanValue? tapAnimationReverseValue,
- FFBooleanValue? tapAnimationInvertValue,
- FFDoubleValue? tapAnimationRangeStartValue,
- FFDoubleValue? tapAnimationRangeEndValue,
- 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;
}