rotation property
set
rotation
(int _rotate)
Rotation varies from 90 to -90
Implementation
set rotation(int _rotate) {
if (_rotate > 90 || _rotate < -90) {
_rotate = 0;
}
if (_rotate < 0) {
/// The value is from 0 to -90 so now make it absolute and add it to 90
///
/// -(_rotate) + 90
_rotate = -(_rotate) + 90;
}
_rotation = _rotate;
}