writeIterable<T> method

void writeIterable<T>(
  1. NotificationList<T> target,
  2. int at,
  3. Iterable<T> source
)
override

Write the elements of an iterable into a list.

This is a utility function that can be used to implement methods like setAll.

The elements of source are written into target from position at. The source must not contain more elements after writing the last position of target.

If the source is a list, the copyRange function is likely to be more efficient.

Implementation

static void writeIterable<T>(
    NotificationList<T> target, int at, Iterable<T> source) {
  List.writeIterable(target, at, source);
}