pageLabel method

String pageLabel(
  1. int index
)

Implementation

String pageLabel(int index) {
  final n = labels.keys.toList()..sort();
  var current = PdfPageLabel.arabic();
  var s = 0;
  for (final i in n) {
    if (index >= i) {
      current = labels[i]!;
      s = i;
    }
  }

  return current.asString(index - s);
}