getNPageFromIndex method

NPage? getNPageFromIndex(
  1. int index
)

Implementation

NPage? getNPageFromIndex(int index) {
  if (_index == index) return this;
  for (var page in pages) {
    final nPage = page.getNPageFromIndex(index);
    if (nPage != null) return nPage;
  }
  return null;
}