onPointerUp method

void onPointerUp()

Implementation

void onPointerUp() {
  widget.onSeekEnd?.call();
  setState(() {
    click = false;
  });
  controller(context).player.seek(duration * slider);
  setState(() {
    // Explicitly set the position to prevent the slider from jumping.
    position = duration * slider;
  });
}