FFTransform constructor
FFTransform({
- FFOffset? origin,
- FFAlignment? childAlignment,
- FFVector2D? scale,
- FFVector2D? skew,
- @Deprecated('This field is deprecated.') double? legacyRotate,
- FFVector2D? translate,
- double? legacyRotateInDegrees,
- FFDoubleValue? rotateInDegreesValue,
- bool? animated,
- FFCurve? animationCurve,
- FFDoubleValue? animationDurationValue,
Implementation
factory FFTransform({
FFOffset? origin,
FFAlignment? childAlignment,
FFVector2D? scale,
FFVector2D? skew,
@$core.Deprecated('This field is deprecated.') $core.double? legacyRotate,
FFVector2D? translate,
$core.double? legacyRotateInDegrees,
FFDoubleValue? rotateInDegreesValue,
$core.bool? animated,
FFCurve? animationCurve,
FFDoubleValue? animationDurationValue,
}) {
final result = create();
if (origin != null) result.origin = origin;
if (childAlignment != null) result.childAlignment = childAlignment;
if (scale != null) result.scale = scale;
if (skew != null) result.skew = skew;
if (legacyRotate != null) result.legacyRotate = legacyRotate;
if (translate != null) result.translate = translate;
if (legacyRotateInDegrees != null)
result.legacyRotateInDegrees = legacyRotateInDegrees;
if (rotateInDegreesValue != null)
result.rotateInDegreesValue = rotateInDegreesValue;
if (animated != null) result.animated = animated;
if (animationCurve != null) result.animationCurve = animationCurve;
if (animationDurationValue != null)
result.animationDurationValue = animationDurationValue;
return result;
}