FontExpression constructor

FontExpression(
  1. SourceSpan? span, {
  2. Object? size,
  3. List<String>? family,
  4. int? weight,
  5. String? style,
  6. String? variant,
  7. LineHeight? lineHeight,
})

Implementation

FontExpression(SourceSpan? span,
    {Object? /* LengthTerm | num */ size,
    List<String>? family,
    int? weight,
    String? style,
    String? variant,
    LineHeight? lineHeight})
    : font = Font(
          size: (size is LengthTerm ? size.value : size) as num?,
          family: family,
          weight: weight,
          style: style,
          variant: variant,
          lineHeight: lineHeight),
      super(DartStyleExpression.fontStyle, span);