forEachComponent method

void forEachComponent(
  1. void action(
    1. 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);
    }
  }
}