rotationX property

double rotationX

The rotation angle in radians about the x-axis for 3d transformation.

Implementation

double get rotationX {
  return _rotationX;
}
void rotationX=(double value)

(Experimental) Sets the rotation angle in degrees about the x-axis for 3d transformation. Throws an error if value is NaN. If the value has not changed, does nothing.

Implementation

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