setEnabled method Null safety

Future<void> setEnabled(
  1. {required bool enabled}

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.


Future<void> setEnabled({required bool enabled}) {
  return _channel.$setEnabled(this, enabled);