addOutput method Null safety

Future<void> addOutput(
  1. covariant CaptureOutput output
)

Adds a given output to the session.

You can only add an output to a session using this method if canAddOutput returns true. This method throws an exception when invoked and canAddOutput returns false.

You can invoke this method while the session is running.

Implementation

Future<void> addOutput(covariant CaptureOutput output) {
  return _channel.$addOutput(this, output);
}