ScannerPreview class
What the native side tells us about the running camera.
Constructors
- ScannerPreview({required int textureId, required Size previewSize, required Size analysisSize, required int rotationDegrees, required CameraFacing facing, required bool isMirrored, required bool hasTorch, required double minZoom, required double maxZoom})
-
const
Properties
- analysisSize → Size
-
Size of the buffer the decoder analyses. Barcode corner points are in
this space.
final
- aspectRatio → double
-
no setter
- facing → CameraFacing
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasTorch → bool
-
final
- isMirrored → bool
-
Front cameras are mirrored for preview.
final
- maxZoom → double
-
final
- minZoom → double
-
final
- orientedPreviewSize → Size
-
Preview size after rotationDegrees.
no setter
- previewSize → Size
-
Native size of the texture, before rotationDegrees is applied.
final
- rotationDegrees → int
-
Clockwise rotation, in degrees, that makes the texture upright.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textureId → int
-
Flutter texture backing the preview. Frames go camera -> texture on the
GPU; they never pass through Dart.
final
Methods
-
copyWith(
{int? textureId}) → ScannerPreview -
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
Static Methods
-
fromMap(
Map< Object?, Object?> map) → ScannerPreview