LengthTerm constructor
LengthTerm(
- dynamic value,
- String t,
- SourceSpan? span, [
- 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);
}