ScannerController constructor

ScannerController({
  1. CameraResolution? resolution,
  2. double topRatio = 0.3,
  3. Cameras? camera,
  4. double leftRatio = 0.1,
  5. double widthRatio = 0.8,
  6. double heightRatio = 0.4,
})

Implementation

ScannerController({
  CameraResolution? resolution,
  this.topRatio = 0.3,
  this.camera,
  this.leftRatio = 0.1,
  this.widthRatio = 0.8,
  this.heightRatio = 0.4,
})  : resolution = resolution ?? CameraResolution.veryHigh,
      assert(leftRatio * 2 + widthRatio == 1),
      assert(topRatio * 2 + heightRatio == 1);