stopVisualizer method

Future<void> stopVisualizer()

Implementation

Future<void> stopVisualizer() async {
  final int? id = _playerId;
  if (id == null) return;
  audioSpectrum.value = const <double>[];
  try {
    await UMediaChannel.call<void>(id, "stopVisualizer");
  } on PlatformException {
    return;
  } on MissingPluginException {
    return;
  }
}