getAdjustedSeekbarPosition method
Implementation
double getAdjustedSeekbarPosition(double position) {
// Check if position is less than 0
if (position < 0 || position > playerController.duration.value.toDouble()) {
return 0.0; // Ensure it's at the start if negative
}
// Return the valid position
return position;
}