You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (final View view in _views) {
if (_ignoreDetached && !view.inDocument) {
_views.remove(view); //ignore detached
continue;
}
...
So, when the if is triggered, a child is removed from _views and thus the for-each throws the error.
I will try to submit a pull request if I have time. I suggest just making a copy of the set before iterating (possible optimization: if _ignoreDetached==false and _ignoreSubviews==false no copy is needed).
The text was updated successfully, but these errors were encountered:
The method starts with code:
for (final View view in _views) {
if (_ignoreDetached && !view.inDocument) {
_views.remove(view); //ignore detached
continue;
}
...
So, when the if is triggered, a child is removed from _views and thus the for-each throws the error.
I will try to submit a pull request if I have time. I suggest just making a copy of the set before iterating (possible optimization: if _ignoreDetached==false and _ignoreSubviews==false no copy is needed).
The text was updated successfully, but these errors were encountered: