CameraPosition constructor

CameraPosition({
  1. required String modelName,
  2. required double screenWidth,
  3. required double screenHeight,
  4. required double screenOriginX,
  5. required double screenOriginY,
  6. bool cameraOnLongerAxis = false,
})

Creates a CameraPosition instance with the provided parameters.

The modelName should be the model name of the mobile device. screenWidth and screenHeight represent the dimensions of the screen in pixels. screenOriginX and screenOriginY are distances in millimeters from the front camera to the screen origin (0, 0). cameraOnLongerAxis indicates whether the camera is mounted on the longer axis of the device (default is false).

Implementation

CameraPosition({
  required this.modelName,
  required this.screenWidth,
  required this.screenHeight,
  required this.screenOriginX,
  required this.screenOriginY,
  this.cameraOnLongerAxis = false,
});