addAll method

void addAll(
  1. List<PdfField> fields
)

Adds a list of fields to the collection.

Implementation

void addAll(List<PdfField> fields) {
  if (fields.isEmpty) {
    throw ArgumentError("fields can't be empty");
  }
  // ignore: avoid_function_literals_in_foreach_calls
  fields.forEach((PdfField element) => add(element));
}