indices property

List<int> get indices

Gets the indices (/I) of selected items in a multi-select list.

Implementation

List<int> get indices {
  if (dictionary.containsKey(PdfNameTokens.i)) {
    final i = dictionary[PdfNameTokens.i];
    if (i is PdfArray) {
      return i.values.map((e) => (e as PdfNum).value.toInt()).toList();
    }
  }
  return [];
}
set indices (List<int> value)

Implementation

set indices(List<int> value) {
  dictionary[PdfNameTokens.i] = PdfArray.fromNum(value);
}