Skip to content

Commit 54a4def

Browse files
committed
kitchen sink: make all test collections const
1 parent 96f9ae1 commit 54a4def

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

json_serializable/lib/src/constants.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
final toJsonMapVarName = 'val';
6-
final toJsonMapHelperName = 'writeNotNull';
5+
const toJsonMapVarName = 'val';
6+
const toJsonMapHelperName = 'writeNotNull';

json_serializable/test/kitchen_sink_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,15 +240,15 @@ final _invalidValues = const {
240240
r'$string': true,
241241
};
242242

243-
final _excludeIfNullKeys = [
243+
final _excludeIfNullKeys = const [
244244
'dateTime',
245245
'iterable',
246246
'dateTimeList',
247247
'crazyComplex',
248248
toJsonMapVarName
249249
];
250250

251-
final _expectedOrder = [
251+
final _expectedOrder = const [
252252
'no-42',
253253
'dateTime',
254254
'iterable',

0 commit comments

Comments
 (0)