ResolutionTerm constructor

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

Implementation

ResolutionTerm(var value, String t, SourceSpan? span,
    [int unit = TokenKind.UNIT_LENGTH_PX])
    : super(value, t, span, unit) {
  assert(unit == TokenKind.UNIT_RESOLUTION_DPI ||
      unit == TokenKind.UNIT_RESOLUTION_DPCM ||
      unit == TokenKind.UNIT_RESOLUTION_DPPX);
}