Skip to content

Commit b6e79b6

Browse files
committed
Use null-aware operator in list comprehension.
1 parent c926f64 commit b6e79b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/utils/matchers.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Matcher isToString({String? name, String? generic, Iterable<String>? rest}) =>
7373
stringContainsInOrder([
7474
if (name != null && hasAssertionsEnabled()) name,
7575
if (generic != null && hasAssertionsEnabled()) generic,
76-
if (rest != null) ...rest,
76+
...?rest,
7777
]),
7878
);
7979

0 commit comments

Comments
 (0)