skipBack method

void skipBack()

Implementation

void skipBack() {
  if (latestValue != null) {
    cancelAndRestartTimer();
    final beginning = const Duration().inMilliseconds;
    final skip = (latestValue!.position -
            Duration(
                milliseconds: pipFlutterPlayerControlsConfiguration
                    .backwardSkipTimeInMilliseconds))
        .inMilliseconds;
    pipFlutterPlayerController!
        .seekTo(Duration(milliseconds: max(skip, beginning)));
  }
}