Future<Null> seekTo(Duration moment)

Source

Future<Null> seekTo(Duration moment) async {
  if (isDisposed) {
    return;
  }
  if (moment > value.duration) {
    moment = value.duration;
  } else if (moment < const Duration()) {
    moment = const Duration();
  }
  await _channel.invokeMethod(
      'seekTo', {'textureId': _textureId, 'location': moment.inMilliseconds});
  value = value.copyWith(position: moment);
}