firstShownPage property

int get firstShownPage

Implementation

int get firstShownPage {
  if (totalPages <= maxPages) {
    return 1;
  } else {
    final start = page - maxPages ~/ 2;
    return start < 1 ? 1 : start;
  }
}