PreviewTransform class

How the Flutter Texture must be framed. In direct mode (Android, texture preview, nothing needing the GL renderer) the camera writes raw sensor- orientation buffers straight into the texture, so Dart rotates, mirrors and crops them; otherwise the native side already did (identity transform). Returned by NitroCamera.getPreviewTransform.

Implementers
Available extensions
Annotations
  • @HybridStruct.new()

Constructors

PreviewTransform({required int direct, required int rotationDegrees, required int mirrored, required int bufferWidth, required int bufferHeight})
const

Properties

bufferHeight → int
final
bufferWidth → int
final
direct → int
final
hashCode → int
The hash code for this object.
no setterinherited
mirrored → int
final
rotationDegrees → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNative(Arena arena) → Pointer<PreviewTransformFfi>

Available on PreviewTransform, provided by the PreviewTransformExt extension

toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited