ScannerController constructor
ScannerController({})
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);