CameraPosition class
This class represents the camera position for Android. This class is intended to be used on Android platform only.
Constructors
- CameraPosition.new({required String modelName, required double screenWidth, required double screenHeight, required double screenOriginX, required double screenOriginY, bool cameraOnLongerAxis = false})
- Creates a CameraPosition instance with the provided parameters.
Properties
- cameraOnLongerAxis → bool
-
Indicates whether the camera is mounted on the longer axis of the device.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- modelName → String
-
The model name of the mobile device.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenHeight → double
-
The height of the screen in pixels.
final
- screenOriginX → double
-
The distance in millimeters from the front camera to the screen origin (0, 0).
final
- screenOriginY → double
-
The distance in millimeters from the front camera to the screen origin (0, 0).
final
- screenWidth → double
-
The width of the screen in pixels.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited