connection method

Future<CaptureConnection?> connection()

The CaptureConnection instance describing the CaptureInputPort to which the receiver is connected.

When this instantiated with a valid CaptureSession instance, a connection is formed to the first eligible video CaptureInput. If the receiver is detached from a session, the connection value becomes null.

Implementation

Future<CaptureConnection?> connection() async {
  return await _channel.$connection(this) as CaptureConnection?;
}