isAngle static method

bool isAngle(
  1. String angle
)

Judge a string is an angle.

Implementation

static bool isAngle(String angle) {
  return (angle.endsWith(_DEG) || angle.endsWith(_GRAD) || angle.endsWith(_RAD) || angle.endsWith(_TURN));
}