setEnabled method
Indicates whether the port is enabled.
The value of this property defaults to true. If you want to capture only a subset of the media streams provided by an CaptureInput object, use this property to selectively disable streams.
Implementation
Future<void> setEnabled({required bool enabled}) {
return _channel.$setEnabled(this, enabled);
}