jumpToPage method
Navigates directly to page (1-indexed).
Implementation
void jumpToPage(int page) {
final target = page.clamp(1, _totalPages > 0 ? _totalPages : 1);
_currentPage = target;
onJumpToPage?.call(target);
_notify();
}
Navigates directly to page (1-indexed).
void jumpToPage(int page) {
final target = page.clamp(1, _totalPages > 0 ? _totalPages : 1);
_currentPage = target;
onJumpToPage?.call(target);
_notify();
}