rotation property
double
rotation
Returns the angle of rotation in radians.
Implementation
double get rotation {
return _rotation;
}
Sets the rotation angle in radians.
Throws an error if value
is null or NaN.
If the value has not changed, does nothing.
Implementation
set rotation(double? value) {
if (value?.isNaN ?? true) {
throw '[$this.rotation] can not be NaN nor null';
}
if (_rotation == value) {
return;
}
_rotation = value!;
$setTransformationChanged();
}