rotate90Degrees method
Rotate the video by 90 degrees in the direction
provided
Implementation
void rotate90Degrees([RotateDirection direction = RotateDirection.right]) {
switch (direction) {
case RotateDirection.left:
_rotation += 90;
if (_rotation >= 360) _rotation = _rotation - 360;
break;
case RotateDirection.right:
_rotation -= 90;
if (_rotation <= 0) _rotation = 360 + _rotation;
break;
}
notifyListeners();
}