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