stop method

Future<void> stop()

Stops playing of the audio file

Throws VIException, if an error occurred. For all possible errors see VIAudioFileError

Implementation

Future<void> stop() async {
  try {
    await _methodChannel
        .invokeMethod('AudioFile.stop', <String, dynamic>{'fileId': _fileId});
    return Future.value();
  } on PlatformException catch (e) {
    throw VIException(e.code, e.message);
  } catch (e) {
    rethrow;
  }
}