getRotatePosition method

int getRotatePosition(
  1. Position postion
)

Implementation

int getRotatePosition(Position postion) {
  switch (postion) {
    case Position.right:
      return 90;
    case Position.bottom:
      return 180;
    case Position.left:
      return 270;
    case Position.top:
      return 0;
  }
}