isBottom method
Returns true
if the scroll position is near the bottom (90% of max).
Returns false
if there are no scroll clients.
Implementation
bool isBottom() {
if (!hasClients) {
return false;
}
final maxScroll = position.maxScrollExtent;
final currentScroll = offset;
return currentScroll >= (maxScroll * 0.9);
}