PhotoResult class

Result returned after a photo is captured.

Available extensions
Annotations
  • @hybridRecord

Constructors

PhotoResult({required String path, required int width, required int height, required int fileSize, int orientation = 0, int isMirrored = 0, int timestamp = 0})
const

Properties

containerFormat → PhotoOutputFormat

Available on PhotoResult, provided by the PhotoResultFormat extension

no setter
fileSize → int
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
final
isMirrored → int
0 / 1 — whether the SAVED image is mirrored (EXIF flip present). Note front-camera stills are captured unmirrored on both platforms, so this is usually 0 even for selfies.
final
isRawPhoto → bool

Available on PhotoResult, provided by the PhotoResultFormat extension

no setter
orientation → int
Rotation (degrees CW: 0 / 90 / 180 / 270) still PENDING on the saved file — read from its EXIF/TIFF orientation tag. 0 means the pixels are already upright (image viewers that honour EXIF need no extra work).
final
path → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → int
final
width → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNative(Allocator alloc) → Pointer<Uint8>

Available on PhotoResult, provided by the PhotoResultRecordExt extension

toString() → String
A string representation of this object.
inherited
writeFields(RecordWriter writer) → void

Available on PhotoResult, provided by the PhotoResultRecordExt extension

Operators

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