Preview class

Constructors

Preview({required Size nativePreviewSize, required Size previewSize, required Offset offset, required double scale, required Sensor? sensor})
Preview.hidden()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isBackCamera bool
no setter
nativePreviewSize Size
final
offset Offset
final
previewSize Size
final
rect Rect
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
final
sensor Sensor?
final

Methods

convertFromImage(Offset point, AnalysisImage img, {bool? flipXY}) Offset
this method is used to convert a point from an image to the preview according to the current preview size and the image size also in case of Android, it will flip the point if required
convertPoint(Offset point) Offset
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