rotation property
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;