names property

Iterable<String> get names

Implementation

Iterable<String> get names sync* {
  final n = labels.keys.toList()..sort();
  var l = PdfPageLabel.arabic();
  final len = pdfDocument.pdfPageList.pages.length;
  var c = 0;
  var b = c < n.length ? n[c] : len;
  var s = 0;
  for (var i = 0; i < len; i++) {
    if (i >= b) {
      l = labels[b]!;
      c++;
      b = c < n.length ? n[c] : len;
      s = i;
    }
    yield l.asString(i - s);
  }
}