Index: samples/third_party/dromaeo/Suites.dart |
diff --git a/samples/third_party/dromaeo/Suites.dart b/samples/third_party/dromaeo/Suites.dart |
index 1e236b49da91bcee64d3aab8c11515543629b534..7e6ad08d8df2d0cc8a86e84a1e0c358180df421d 100644 |
--- a/samples/third_party/dromaeo/Suites.dart |
+++ b/samples/third_party/dromaeo/Suites.dart |
@@ -136,7 +136,7 @@ class Suites { |
tags = tags.replaceAll('OR', '|').replaceAll('AND', '&'); |
// A disjunction of conjunctions (e.g., |
// 'js&modify|dart&dom&modify'). |
- final taglist = tags.split('|').map((tag) => tag.split('&')); |
+ final taglist = tags.split('|').mappedBy((tag) => tag.split('&')).toList(); |
bool match(suite) { |
// If any conjunction matches, return true. |
@@ -147,7 +147,7 @@ class Suites { |
} |
return false; |
} |
- final suites = SUITE_DESCRIPTIONS.filter(match); |
+ final suites = SUITE_DESCRIPTIONS.where(match).toList(); |
suites.sort((s1, s2) => s1.name.compareTo(s2.name)); |
return suites; |