pivotX property
double
pivotX
Returns the x coordinate of the pivot point, the center of scaling and rotation.
Implementation
double get pivotX {
return _pivotX;
}
Sets the x-coordinate of the object's pivot point.
Throws an error if value
is NaN.
If the value has not changed, does nothing.
Implementation
set pivotX(double value) {
if (value.isNaN) throw '[$this.pivotX] can not be NaN nor null';
if (_pivotX == value) {
return;
}
_pivotX = value;
$setTransformationChanged();
}