setTransform method

void setTransform(
  1. num x,
  2. num y, [
  3. num scaleX = 1,
  4. num scaleY = 1,
  5. num rotation = 0,
  6. num skewX = 0,
  7. num skewY = 0,
  8. num pivotX = 0,
  9. num pivotY = 0,
])

Sets transformation properties.

This method exists only for compatibility reasons to the 'Toolkit for Dart' (a Dart/StageXL code generator for Adobe Flash Professional).

It's recommended that you use the setters of x, y, scaleX, etc. directly instead of calling this method.

Implementation

void setTransform(num x, num y,
    [num scaleX = 1,
    num scaleY = 1,
    num rotation = 0,
    num skewX = 0,
    num skewY = 0,
    num pivotX = 0,
    num pivotY = 0]) {
  _x = x;
  _y = y;
  _scaleX = scaleX;
  _scaleY = scaleY;
  _rotation = rotation;
  _skewX = skewX;
  _skewY = skewY;
  _pivotX = pivotX;
  _pivotY = pivotY;
  _transformationMatrixRefresh = true;
}