seekTo method

Future<bool> seekTo(
  1. String key,
  2. int progress
)

platform call to seek audio at provided position

Implementation

Future<bool> seekTo(String key, int progress) async {
  var result = await _methodChannel.invokeMethod(Constants.seekTo,
      {Constants.progress: progress, Constants.playerKey: key});
  return result ?? false;
}