onDragUpdate property
A callback when the user is moving the thumb.
This will be called repeatedly as the thumb position changes. This
provides you with the ThumbDragDetails, which notify you of the global
and local positions of the drag event as well as the current thumb
duration. The current thumb duration will not go beyond total or less
that Duration.zero
so you can use this information to clamp the drag
position values.
This method is useful if you are planning to do something like add a time label and/or video preview over the thumb and need to update the position to stay in sync with the thumb position.
Use onSeek if you only want to seek to a new audio position when the drag event has finished.
Implementation
final ThumbDragUpdateCallback? onDragUpdate;