handleScroll method
void
handleScroll()
Implementation
void handleScroll() {
if (!mounted) {
return;
}
if (widget.throttle != null) {
final now = DateTime.now();
final elapsed = _lastTime?.difference(now).inMilliseconds.abs();
if (elapsed != null && elapsed < widget.throttle!.inMilliseconds) {
return;
}
_lastTime = now;
}
_checkReachEdge();
scrollController.onMetricsUpdate();
}