onScrolling method

void onScrolling(
  1. void callback(
    1. bool isScrolling
    )
)

Implementation

void onScrolling(void Function(bool isScrolling) callback) {
  isScrollingNotifier.addListener(() {
    callback(isScrollingNotifier.value);
  });
}