We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 617a081 commit 595cdd1Copy full SHA for 595cdd1
lib/src/css_parser.dart
@@ -71,8 +71,6 @@ Style declarationsToStyle(Map<String?, List<css.Expression>> declarations) {
71
&& element.text != "overline" && element.text != "underline" && element.text != "line-through");
72
List<css.Expression?>? nullableList = value;
73
css.Expression? textDecorationColor;
74
- /// orElse: will not allow me to return null (even if the compiler says its okay, it errors on runtime).
75
- /// try/catch is a workaround for this.
76
textDecorationColor = nullableList.firstWhereOrNull(
77
(element) => element is css.HexColorTerm || element is css.FunctionTerm);
78
List<css.LiteralTerm?>? potentialStyles = value.whereType<css.LiteralTerm>().toList();
0 commit comments