$create$ method

  1. @override
CaptureDeviceDiscoverySession $create$(
  1. TypeChannelMessenger messenger,
  2. List<$CaptureDevice> devices,
  3. List<List<$CaptureDevice>> supportedMultiCamDeviceSets
)
override

Implementation

@override
CaptureDeviceDiscoverySession $create$(
  TypeChannelMessenger messenger,
  List<$CaptureDevice> devices,
  List<List<$CaptureDevice>> supportedMultiCamDeviceSets,
) {
  // ignore: invalid_use_of_visible_for_testing_member
  return CaptureDeviceDiscoverySession(
    devices: devices.cast<CaptureDevice>(),
    supportedMultiCamDeviceSets: supportedMultiCamDeviceSets
        .map((_) => _.map((_) => _ as CaptureDevice).toSet())
        .toList(),
  );
}