angle property

double get angle

The canvas angle (radians, clockwise from the positive x-axis) at which the indicator touches the wheel.

Implementation

double get angle => switch (this) {
      IndicatorPosition.top => -pi / 2,
      IndicatorPosition.right => 0.0,
      IndicatorPosition.bottom => pi / 2,
      IndicatorPosition.left => pi,
    };