updateCurrentAudioNotification method

Future<void> updateCurrentAudioNotification({
  1. Metas? metas,
  2. bool showNotifications = true,
})

Implementation

Future<void> updateCurrentAudioNotification(
    {Metas? metas, bool showNotifications = true}) async {
  if (_lastOpenedAssetsAudio != null) {
    final params = {
      'id': id,
      'path': _lastOpenedAssetsAudio?.path,
      'showNotification': showNotifications,
    };

    writeAudioMetasInto(params, metas);

    await _sendChannel.invokeMethod('onAudioUpdated', params);
  }
}