Index: pkg/serialization/lib/src/mirrors_helpers.dart |
diff --git a/pkg/serialization/lib/src/mirrors_helpers.dart b/pkg/serialization/lib/src/mirrors_helpers.dart |
index ef849257dc88a75ce0ded686bb9239756087e5d1..b1b4d9f15ad49c30ec72ee20966d2095ddff9e73 100644 |
--- a/pkg/serialization/lib/src/mirrors_helpers.dart |
+++ b/pkg/serialization/lib/src/mirrors_helpers.dart |
@@ -19,7 +19,7 @@ import 'serialization_helpers.dart'; |
*/ |
List<VariableMirror> publicFields(ClassMirror mirror) { |
var mine = mirror.variables.values.where( |
- (x) => !(x.isPrivate || x.isStatic)); |
+ (x) => !(x.isPrivate || x.isStatic)).toList(); |
var mySuperclass = mirror.superclass; |
if (mySuperclass != mirror) { |
return append(publicFields(mirror.superclass), mine); |