$create$ method

  1. @override
$CaptureDevice $create$(
  1. TypeChannelMessenger messenger,
  2. String uniqueId,
  3. int position,
  4. bool isSmoothAutoFocusSupported,
  5. bool hasFlash,
  6. bool hasTorch,
  7. double maxAvailableTorchLevel,
)
override

Implementation

@override
$CaptureDevice $create$(
  TypeChannelMessenger messenger,
  String uniqueId,
  int position,
  bool isSmoothAutoFocusSupported,
  bool hasFlash,
  bool hasTorch,
  double maxAvailableTorchLevel,
) {
  // ignore: invalid_use_of_visible_for_testing_member
  return CaptureDevice(
    uniqueId: uniqueId,
    position: position,
    isSmoothAutoFocusSupported: isSmoothAutoFocusSupported,
    hasFlash: hasFlash,
    hasTorch: hasTorch,
    maxAvailableTorchLevel: maxAvailableTorchLevel,
  );
}