getTurns method

double getTurns(
  1. CameraOrientations orientation
)

Implementation

double getTurns(CameraOrientations orientation) {
  switch (orientation) {
    case CameraOrientations.landscape_left:
      return 0.75;
    case CameraOrientations.landscape_right:
      return 0.25;
    case CameraOrientations.portrait_up:
      return 0;
    case CameraOrientations.portrait_down:
      return 0.5;
  }
}