TimeTerm constructor

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

Implementation

TimeTerm(super.value, super.text, super.span,
    [super.unit = TokenKind.UNIT_LENGTH_PX]) {
  assert(unit == TokenKind.UNIT_ANGLE_DEG ||
      unit == TokenKind.UNIT_TIME_MS ||
      unit == TokenKind.UNIT_TIME_S);
}