setAudioTrackVolume method

void setAudioTrackVolume(
  1. String id,
  2. double volume
)

Sets the volume (0..2) of the track with id.

Implementation

void setAudioTrackVolume(String id, double volume) {
  final index = audioTracks.indexWhere((a) => a.id == id);
  if (index == -1) return;
  updateAudioVolume(index, volume);
}