activeDocumentIndex property

int get activeDocumentIndex

get active document index

Implementation

int get activeDocumentIndex {
  return _activeDocument;
}
set activeDocumentIndex (int index)

set active document index

Implementation

set activeDocumentIndex(int index) {
  if (index == -1 || index >= 0 && index < _documents.length) {
    _activeDocument = index;
    if (onRefresh != null) {
      onRefresh!(documents);
    }
  }
}