$create$ method

Future<PairedInstance?> $create$(
  1. $CaptureDevice $instance, {
  2. required bool $owner,
  3. required String uniqueId,
  4. required int position,
  5. required bool isSmoothAutoFocusSupported,
  6. required bool hasFlash,
  7. required bool hasTorch,
  8. required double maxAvailableTorchLevel,
})

Implementation

Future<PairedInstance?> $create$(
  $CaptureDevice $instance, {
  required bool $owner,
  required String uniqueId,
  required int position,
  required bool isSmoothAutoFocusSupported,
  required bool hasFlash,
  required bool hasTorch,
  required double maxAvailableTorchLevel,
}) {
  return createNewInstancePair(
    $instance,
    <Object?>[
      '',
      uniqueId,
      position,
      isSmoothAutoFocusSupported,
      hasFlash,
      hasTorch,
      maxAvailableTorchLevel,
    ],
    owner: $owner,
  );
}