onProgressDragEnd method
void
onProgressDragEnd()
Implementation
void onProgressDragEnd() async {
if (_dispose) {
return;
}
if (_autoPause && videoPlayerValue?.isInitialized == true) {
_autoPause = false;
// except seek to end.
final duration = videoPlayerValue?.duration ?? Duration.zero;
final position = videoPlayerValue?.position ?? Duration.zero;
if (duration != Duration.zero && duration > position) {
await play();
}
}
}