resume method

Future<void> resume()

Resumes the playback that being paused

Throws an Exception if the player is not initialized

Throws an Exception if the playback is not resumed

Implementation

Future<void> resume() async {
  print('RS:---> resume');

  await _lock.synchronized(() async {
    _ensureInited();

    var state = await RawSoundPlayerPlatform.instance.resume(
      this,
    );
    _playState = PlayState.values[state];
    if (_playState != PlayState.playing) {
      throw Exception('Player is not resumed');
    }
  });

  print('RS:<--- resume');
}