addAll method Null safety

  1. @override
Description addAll(
  1. String start,
  2. String separator,
  3. String end,
  4. Iterable list
)
override

Append an Iterable list of objects to the description, using the specified separator and framing the list with start and end.

Implementation

@override
Description addAll(
    String start, String separator, String end, Iterable list) {
  var separate = false;
  add(start);
  for (var item in list) {
    if (separate) {
      add(separator);
    }
    addDescriptionOf(item);
    separate = true;
  }
  add(end);
  return this;
}