forEachComponent method
void
forEachComponent(
- void action(
- C component
Implementation
void forEachComponent(void Function(C component) action) async {
var length = this.length;
for (var i = 0; i < length; i++) {
action(_modelToComponent[i]);
if (length != this.length) {
throw ConcurrentModificationError(this);
}
}
}