AngleTerm constructor

AngleTerm(
  1. Object value,
  2. String text,
  3. SourceSpan? span, [
  4. int unit = TokenKind.UNIT_LENGTH_PX,
])

Implementation

AngleTerm(super.value, super.text, super.span,
    [super.unit = TokenKind.UNIT_LENGTH_PX]) {
  assert(unit == TokenKind.UNIT_ANGLE_DEG ||
      unit == TokenKind.UNIT_ANGLE_RAD ||
      unit == TokenKind.UNIT_ANGLE_GRAD ||
      unit == TokenKind.UNIT_ANGLE_TURN);
}