LengthTerm constructor

LengthTerm(
  1. dynamic value,
  2. String t,
  3. SourceSpan? span, [
  4. int unit = TokenKind.UNIT_LENGTH_PX,
])

Implementation

LengthTerm(value, String t, SourceSpan? span,
    [int unit = TokenKind.UNIT_LENGTH_PX])
    : super(value, t, span, unit) {
  assert(this.unit == TokenKind.UNIT_LENGTH_PX ||
      this.unit == TokenKind.UNIT_LENGTH_CM ||
      this.unit == TokenKind.UNIT_LENGTH_MM ||
      this.unit == TokenKind.UNIT_LENGTH_IN ||
      this.unit == TokenKind.UNIT_LENGTH_PT ||
      this.unit == TokenKind.UNIT_LENGTH_PC);
}