translateRotatedPosition method

double translateRotatedPosition(
  1. double size,
  2. double degree
)

Forward the view base on its degree

Implementation

double translateRotatedPosition(double size, double degree) {
  return (size / 4) * math.sin(radians(degree.abs()));
}