isAtBottom method

bool isAtBottom({
  1. double threshold = 20,
})

Implementation

bool isAtBottom({double threshold = 20}) {
  if (!hasClients) return true;
  if (reverse) {
    return position.pixels <= threshold;
  } else {
    return (position.maxScrollExtent - position.pixels) <= threshold;
  }
}