seekTo method

Future<void> seekTo(
  1. Duration position
)

Implementation

Future<void> seekTo(Duration position) async {
  if (!_isChangingSource) {
    final Duration end = endRange;
    final Duration begin = beginRange;
    if (position < begin) {
      position = begin;
    } else if (position > end) {
      position = end;
    }
    await _video?.seekTo(position);
  }
}