is it possible to determine that the user's scrolling is over, so as not to call the method on each frame
NotificationListener<DraggableScrollableNotification>(
onNotification: (notification) {
// here determine if scroll is over and func.call()
},
child: DraggableScrollableSheet(
initialChildSize: _initialChildSize,
snap: true,
snapSizes: _snapSizes,
minChildSize: _minChildSize,
maxChildSize: _maxChildSize,
controller: _sheetController,
builder: (context, controller) {
return _customScrollView();
},
),
),