isEnabled property

  1. @override
bool get isEnabled
inherited

Implementation

@override
bool get isEnabled => _isEnabled;
  1. @override
set isEnabled (bool enabled)
override

Set whether the track is enabled.

Remarks:

  • Only one track of the same type (e.g. video) can be enabled at the same time.
  • Enabling a track will disable all other tracks of the same type.
  • Disabling a track will not enable a different track of the same type.

Implementation

@override
set isEnabled(bool enabled) {
  super.isEnabled = enabled;
  _nativeAudioTrackAPI.setEnabled(uid, enabled);
}