onSeek property

ValueChanged<Duration>? onSeek
final

A callback when user moves the thumb.

When the user moved the thumb on the progress bar this callback will run. It will not run until after the user has finished the touch event.

You will get the chosen duration to start playing at which you can pass on to your media player.

If you want continuous duration updates as the user moves the thumb, see onDragUpdate, where the provided ThumbDragDetails has a timeStamp with the seek duration on it.

Implementation

final ValueChanged<Duration>? onSeek;