z property

double z

(Experimental) The z-coordinate of this object in 3D space.

Implementation

double get z {
  return _z;
}
void z=(double value)

(Experimental) Sets the z-axis coordinate of this object in 3D space.

Throws an error if the given value is NaN. If the new value is the same as the current one, the method returns immediately.

Implementation

set z(double value) {
  if (value.isNaN) {
    throw '[$this.z] can not be NaN';
  }
  if (_z == value) {
    return;
  }
  _z = value;
  if (!_isWarned3d) {
    _warn3d();
  }
  $setTransformationChanged();
}