Skip to content

Commit b792d06

Browse files
authored
Merge pull request Sub6Resources#591 from windows7lake/master
Fix issue Sub6Resources#590:type 'List<Expression>' is not a subtype of type 'List…
2 parents ad237b6 + 34aad28 commit b792d06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/css_parser.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ Style declarationsToStyle(Map<String?, List<css.Expression>> declarations) {
9292
style.textDecorationColor = ExpressionMapping.expressionToColor(value.first) ?? style.textDecorationColor;
9393
break;
9494
case 'text-decoration-line':
95-
style.textDecoration = ExpressionMapping.expressionToTextDecorationLine(value as List<css.LiteralTerm>);
95+
List<css.LiteralTerm?>? textDecorationList = value.whereType<css.LiteralTerm>().toList();
96+
style.textDecoration = ExpressionMapping.expressionToTextDecorationLine(textDecorationList);
9697
break;
9798
case 'text-decoration-style':
9899
style.textDecorationStyle = ExpressionMapping.expressionToTextDecorationStyle(value.first as css.LiteralTerm);

0 commit comments

Comments
 (0)