stop method

Future<void> stop(
  1. AudioPlayer player
)

Implementation

Future<void> stop(AudioPlayer player) async {
  _state = null;
  _audio = null;
  await player.seek(const Duration());
  await player.stop();
}