Document constructor

Document({
  1. required Iterable<Paragraph> paragraphs,
})

Implementation

Document({
  required Iterable<Paragraph> paragraphs,
}) : paragraphs = <Paragraph>[] {
  for (var pr in paragraphs) {
    insert(pr);
  }
}