x property
double
x
The x coordinate of the display object relative to its parent's coordinate system.
Implementation
double get x {
return _x;
}
Sets the x coordinate of the display object relative to its parent's
coordinate system.
Throws an exception if the value is null
or NaN
.
If the value has not changed, does nothing.
Implementation
set x(double? value) {
if (value?.isNaN ?? true) {
throw '[$this.x] can not be NaN nor null';
}
if (_x == value) {
return;
}
_x = value!;
$setTransformationChanged();
}