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 fae0d0dCopy full SHA for fae0d0d
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 collection of
64
+ // registered views instead to avoid concurrent modification.
65
+ for (final view in _messageListViews.toList()) {
66
view.dispose();
67
68
0 commit comments