seek method

Future<void> seek(
  1. AudioPlayer player,
  2. Duration position
)

Implementation

Future<void> seek(AudioPlayer player, Duration position) async {
  _state = _state?.copyWith(position: position);
  await player.seek(position);
}