rotation property

  1. @override
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;
  1. @override
void rotation=(num value)
override

Implementation

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