scrollCallBack method

void scrollCallBack(
  1. DragUpdateDetails dragUpdate
)

Implementation

void scrollCallBack(DragUpdateDetails dragUpdate) {
  // Note: 3.5 represents the theoretical height of all my scrollable content. This number will vary for you.
  scrollController!.position.moveTo(dragUpdate.globalPosition.dy * 3.5);
}