initCamera method

Future<void> initCamera({
  1. required bool hasBarcodeReader,
  2. FlashMode initFlash = FlashMode.auto,
  3. bool fill = true,
  4. BarcodeType barcodeType = BarcodeType.allFormats,
  5. CameraType cameraType = CameraType.back,
  6. UsageMode mode = UsageMode.barcodeScanner,
})

Implementation

Future<void> initCamera({
  required bool hasBarcodeReader,
  FlashMode initFlash = FlashMode.auto,
  bool fill = true,
  BarcodeType barcodeType = BarcodeType.allFormats,
  CameraType cameraType = CameraType.back,
  UsageMode mode = UsageMode.barcodeScanner,
}) {
  return ArtemisBarcodeScannerPlatform.instance.initCamera(
      mode: mode,
      hasBarcodeReader: hasBarcodeReader,
      initFlash: initFlash,
      fill: fill,
      barcodeType: barcodeType,
      cameraType: cameraType);
}