end method

Future end()

Implementation

Future end() async {
  if (_delegate == null) {
    throw Exception(["did not execute init()"]);
  }
  final result = await _delegate?.end() ?? false;
  if (result) {
    isPlaying = false;
    currentPlayingAudioID = null;
    duration = 0;
    position = 0;
    notifyListeners();
  }
  return Future.value();
}