nextPage method
Implementation
Future<void> nextPage({
required double pageHeight,
Duration duration = const Duration(milliseconds: 300),
Curve curve = Curves.easeInOut,
}) async {
if (!hasClients) return;
final target = (offset + pageHeight).clamp(0.0, position.maxScrollExtent);
await animateTo(target, duration: duration, curve: curve);
}