onPointerUp method

void onPointerUp()

Implementation

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