scale property

double scale

The scale of this node relative its parent.

The scale property is only valid if scaleX and scaleY are equal values.

myNode.scale = 5.0;

Implementation

double get scale {
  assert(_scaleX == _scaleY);
  return _scaleX;
}
void scale= (double scale)

Implementation

set scale(double scale) {
  assert(scale != null);

  _scaleX = _scaleY = scale;
  invalidateTransformMatrix();
}