insertAll method Null safety

void insertAll(
  1. int index,
  2. Iterable<T> displayObjects
)

Implementation

void insertAll(int index, Iterable<T> displayObjects) {
  for (var displayObject in displayObjects) {
    parent.addChildAt(displayObject, index++);
  }
}