scrollHandler property

(dynamic Function(ScrollNotification scroll)?) scrollHandler
final

Scrolling will trigger NotificationListener, which will call this handler; Typically looks like this: void _handleScrollEvent(ScrollNotification scroll) { if (scroll.metrics.pixels == scroll.metrics.maxScrollExtent) _getMoreChats(); }

Implementation

final Function(ScrollNotification scroll)? scrollHandler;