resume method

Future<int> resume()

Resumes the audio that has been paused or stopped, just like calling play, but without changing the parameters.

Implementation

Future<int> resume() async {
  final int result = await _invokeMethod('resume');

  if (result == 1) {
    state = AudioPlayerState.PLAYING;
  }

  return result;
}