initModel method
Implementation
initModel(BuildContext context) async {
final size = MediaQuery.of(context).size;
deviceRatio = size.width / size.height;
_cameras = await availableCameras();
// cameraController = MobileScannerController(
// detectionSpeed: DetectionSpeed.noDuplicates,
// facing: CameraFacing.back,
// useNewCameraSelector: true,
// detectionTimeoutMs: 1000,
// autoStart: true,
// );
userId = SecureStorageService.readSecureData(
SecureStorageService.userId,
) ??
"";
partnerIdLogin = SecureStorageService.readSecureData(
SecureStorageService.partnerIdLogin,
) ??
"";
// setTestData(false);
}