setTracksEnabled function

void setTracksEnabled(
  1. List<MediaStreamTrack> tracks,
  2. bool enabled
)

Implementation

void setTracksEnabled(List<MediaStreamTrack> tracks, bool enabled) {
  tracks.forEach((element) {
    element.enabled = enabled;
  });
}