We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a11d46a commit b72088fCopy full SHA for b72088f
lib/model/message.dart
@@ -59,7 +59,10 @@ class MessageStoreImpl with MessageStore {
59
}
60
61
void dispose() {
62
- for (final view in _messageListViews) {
+ // When a MessageListView is disposed, it unregisters itself from the
63
+ // message store. We need to iterate over a copy of the set instead to
64
+ // avoid concurrent modification to the set of registered views.
65
+ for (final view in _messageListViews.toList()) {
66
view.dispose();
67
68
0 commit comments