removeSound method

Future<void> removeSound(
  1. SoundViewModel soundViewModel
)

Удаление звука

Implementation

Future<void> removeSound(SoundViewModel soundViewModel) async {
  if (_comics == null) return;

  await soundViewModel.sound.delete();
  _comics!.sounds.remove(soundViewModel.sound);
  _sounds.remove(soundViewModel);
  notifyListeners();
}