addSound method

Future<void> addSound(
  1. String audioPath
)

Добавление звука

Implementation

Future<void> addSound(String audioPath) async {
  if (_comics == null) return;

  final sound = await Sound.create(audioPath, _scroll);
  _comics!.sounds.add(sound);
  _sounds.add(SoundViewModel(this, sound));
  notifyListeners();
}