FFTransform constructor

FFTransform({
  1. FFOffset? origin,
  2. FFAlignment? childAlignment,
  3. FFVector2D? scale,
  4. FFVector2D? skew,
  5. @Deprecated('This field is deprecated.') double? legacyRotate,
  6. FFVector2D? translate,
  7. double? legacyRotateInDegrees,
  8. FFDoubleValue? rotateInDegreesValue,
  9. bool? animated,
  10. FFCurve? animationCurve,
  11. 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;
}