previous method

Future<String> previous()

play previous audio

Implementation

Future<String> previous() async {
  if (playMode != PlayMode.single) {
    int index = _curIndex - 1;
    _curIndex = index < 0 ? _audioList.length - 1 : index;
  }
  return await play();
}