Index: samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
diff --git a/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart b/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
index b364d14b3e53ba41a4784835c96267bd2e81374b..2f2c7a36e56e337224002fbcfcc4ed46bc3d316e 100644 |
--- a/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
+++ b/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart |
@@ -65,7 +65,7 @@ class AnimationScheduler { |
* frames. |
*/ |
void cancelRequestAnimationFrame(int id) { |
- _callbacks = _callbacks.filter((CallbackData e) => e.id != id); |
+ _callbacks = _callbacks.where((CallbackData e) => e.id != id).toList(); |
} |
/** |