Index: utils/pub/validator/name.dart |
diff --git a/utils/pub/validator/name.dart b/utils/pub/validator/name.dart |
index eb1bc85034edc1b1295ab73049d598ed79c82120..7c4778c8af4604b849c9b16b4e9a4c6587d4a7c9 100644 |
--- a/utils/pub/validator/name.dart |
+++ b/utils/pub/validator/name.dart |
@@ -52,7 +52,7 @@ class NameValidator extends Validator { |
return listDir(libDir, recursive: true); |
}).then((files) { |
return files |
- .mappedBy((file) => relativeTo(file, dirname(libDir))) |
+ .map((file) => relativeTo(file, dirname(libDir))) |
.where((file) => !splitPath(file).contains("src") && |
path.extension(file) == '.dart') |
.toList(); |