rotate90Degrees method

void rotate90Degrees([
  1. RotateDirection direction = RotateDirection.right
])

Rotate the video by 90 degrees in the direction provided

Implementation

void rotate90Degrees([RotateDirection direction = RotateDirection.right]) {
  switch (direction) {
    case RotateDirection.left:
      _rotation += 90;
      break;
    case RotateDirection.right:
      _rotation -= 90;
      break;
  }
  notifyListeners();
}