toAngleUnits method

AngleUnits toAngleUnits()

Implementation

AngleUnits toAngleUnits() {
  switch (this) {
    case 'DEGREE_ANGLE':
      return AngleUnits.degreeAngle;
    case 'RADIAN':
      return AngleUnits.radian;
  }
  throw Exception('$this is not known in enum AngleUnits');
}