toIterable method
Implementation
Iterable<T> toIterable() sync* {
final iterator = jsu.getProperty(this, _iterator);
window.console.log('Iterator', iterator);
final callable = (jsu.callMethod(iterator, 'bind', [this]) as Function())();
window.console.log('Callable', callable);
while (true) {
final result = _next(callable);
if (result.done) {
break;
}
yield result.value;
}
window.console.log('doneall');
}