initCamera method

  1. @override
Future<void> initCamera({
  1. required FlashMode initFlash,
  2. required bool fill,
  3. required CameraType cameraType,
  4. required UsageMode mode,
})
override

Implementation

@override
Future<void> initCamera({
  required FlashMode initFlash,
  required bool fill,
  required CameraType cameraType,
  required UsageMode mode,
}) async {
  return methodChannel.invokeMethod<void>('initCamera', {
    "hasBarcodeReader": false,
    "initFlashModeID": initFlash.id,
    "modeID": mode.id,
    "fill": fill,
    "cameraTypeID": cameraType.id
  });
}