pause method

Future<void> pause(
  1. AudioPlayer player
)

Implementation

Future<void> pause(AudioPlayer player) async {
  _state = _state?.copyWith(status: AudioStatus.paused);
  await player.pause();
}