rotation property

num rotation
override

The rotation of this display object, in radians, from its original orientation.

// Convert from degrees to radians.
this.rotation = degrees * math.PI / 180;

// Convert from radians to degrees.
num degrees = this.rotation * 180 / math.PI;

Implementation

@override
num get rotation => _rotation;
void rotation= (num value)
override

Implementation

@override
set rotation(num value) {
  if (value is num) _rotation = value;
  _transformationMatrixRefresh = true;
}