initModel method

dynamic initModel(
  1. BuildContext context
)

Implementation

initModel(BuildContext context) async {
  final size = MediaQuery.of(context).size;
  deviceRatio = size.width / size.height;
  cameraController = MobileScannerController(
    detectionSpeed: DetectionSpeed.noDuplicates,
    facing: CameraFacing.back,
  );
  // setTestData(false);
}