seekTo method

  1. @override
Future<void> seekTo(
  1. int? textureId,
  2. Duration? position
)
override

Sets the video position to a Duration from the start.

Implementation

@override
Future<void> seekTo(int? textureId, Duration? position) {
  return _channel.invokeMethod<void>(
    'seekTo',
    <String, dynamic>{
      'textureId': textureId,
      'location': position!.inMilliseconds,
    },
  );
}