stopVoice method

Future<bool> stopVoice()

Implementation

Future<bool> stopVoice() async {
  if (source == null) return false;
  print("textureId:$textureId start");
  var result = await app_player_channel.invokeMethod(
      "app_player_stop_voice", this.textureId);
  if (result == true) {
    this.voiceStatus = VoiceStatus.STOP;
  }
  print("textureId:$textureId result:$result end");
  return result;
}