Open Surio89 opened 2 years ago
Based on the error, I believe this may be from DDC instead of dart2js.
@Surio89 - to confirm, does it fail when running in debug mode, but work if you run with flutter run -d chrome --profile
or --release
?
Looks like a bug.
The FromIterableIListMixin
contains an Iterator<T> get iterator => iter.iterator;
and you implement Iterable<String>
, so it should work.
yes thats right only happens in debug mode not in --release
Hi,
i created my own iterable class:
if i use this class inside a for loop e.g.:
for (final String letter in _myIter){ string += letter; }
this iterable works well on android emulator but if i use chrome it throws:
"TypeError: this[_myIter] is not iterable"
only if i write:
for (final String letter in _myIter.iter){ string += letter; }
it works. Did i do something wrong or is this a bug?
Dart Version 2.16.0. Windows Chrome Flutter 2.10.0