Skip to content

Commit a0630c0

Browse files
fix: use null-aware elements in CssListStyle shorthand
1 parent 76caa26 commit a0630c0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/spark_css/lib/src/css_types/css_list_style.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ final class _CssListStyleShorthand extends CssListStyle {
8181
@override
8282
String toCss() {
8383
final parts = <String>[
84-
if (type != null) type!.toCss(),
85-
if (position != null) position!.toCss(),
86-
if (image != null) image!,
84+
?type?.toCss(),
85+
?position?.toCss(),
86+
?image,
8787
];
8888
return parts.join(' ');
8989
}

0 commit comments

Comments
 (0)