diff --git a/packages/flutter/test/semantics/semantics_test.dart b/packages/flutter/test/semantics/semantics_test.dart index 253dc08348..0f98d79ce5 100644 --- a/packages/flutter/test/semantics/semantics_test.dart +++ b/packages/flutter/test/semantics/semantics_test.dart @@ -145,14 +145,14 @@ void main() { test('OrdinalSortKey compares correctly', () { const List> tests = const >[ - [const OrdinalSortKey(0.0), const OrdinalSortKey(0.0)], - [const OrdinalSortKey(0.0), const OrdinalSortKey(1.0)], - [const OrdinalSortKey(1.0), const OrdinalSortKey(0.0)], - [const OrdinalSortKey(1.0), const OrdinalSortKey(1.0)], - [const OrdinalSortKey(0.0), const CustomSortKey(1.0)], - [const OrdinalSortKey(0.0), const CustomSortKey(0.0)], - [const CustomSortKey(0.0), const OrdinalSortKey(0.0)], - [const CustomSortKey(1.0), const OrdinalSortKey(0.0)], + const [const OrdinalSortKey(0.0), const OrdinalSortKey(0.0)], + const [const OrdinalSortKey(0.0), const OrdinalSortKey(1.0)], + const [const OrdinalSortKey(1.0), const OrdinalSortKey(0.0)], + const [const OrdinalSortKey(1.0), const OrdinalSortKey(1.0)], + const [const OrdinalSortKey(0.0), const CustomSortKey(1.0)], + const [const OrdinalSortKey(0.0), const CustomSortKey(0.0)], + const [const CustomSortKey(0.0), const OrdinalSortKey(0.0)], + const [const CustomSortKey(1.0), const OrdinalSortKey(0.0)], ]; final List expectedResults = [0, -1, 1, 0, 0, 0, 0, 0]; assert(tests.length == expectedResults.length); @@ -178,14 +178,14 @@ void main() { test('OrdinalSortKey compares correctly', () { const List> tests = const >[ - [const OrdinalSortKey(0.0), const OrdinalSortKey(0.0)], - [const OrdinalSortKey(0.0), const OrdinalSortKey(1.0)], - [const OrdinalSortKey(1.0), const OrdinalSortKey(0.0)], - [const OrdinalSortKey(1.0), const OrdinalSortKey(1.0)], - [const OrdinalSortKey(0.0), const CustomSortKey(1.0)], - [const OrdinalSortKey(0.0), const CustomSortKey(0.0)], - [const CustomSortKey(0.0), const OrdinalSortKey(0.0)], - [const CustomSortKey(1.0), const OrdinalSortKey(0.0)], + const [const OrdinalSortKey(0.0), const OrdinalSortKey(0.0)], + const [const OrdinalSortKey(0.0), const OrdinalSortKey(1.0)], + const [const OrdinalSortKey(1.0), const OrdinalSortKey(0.0)], + const [const OrdinalSortKey(1.0), const OrdinalSortKey(1.0)], + const [const OrdinalSortKey(0.0), const CustomSortKey(1.0)], + const [const OrdinalSortKey(0.0), const CustomSortKey(0.0)], + const [const CustomSortKey(0.0), const OrdinalSortKey(0.0)], + const [const CustomSortKey(1.0), const OrdinalSortKey(0.0)], ]; final List expectedResults = [0, -1, 1, 0, 0, 0, 0, 0]; assert(tests.length == expectedResults.length);