With Flutter I'm using a RefreshIndicator with my listview, which works well. I'd like to refresh the data when pulled down from the top and load more paginated data if pulled up from the bottom. Is there a way to tell in the onRefresh callback to tell if it's been pulled from the top or from the bottom?
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return RefreshIndicator(
onRefresh: () {},
child: ListView ...