Result class

Encapsulates the result of decoding a barcode within an image.

@author Sean Owen

Constructors

Result(String text, Int8List? rawBytes, BarcodeFormat format, {List<ResultPoint>? points, int? numBits, DateTime? time})

Properties

format BarcodeFormat
@return {@link BarcodeFormat} representing the format of the barcode that was decoded
final
hashCode int
The hash code for this object.
no setterinherited
numBits int
@return how many bits of {@link #getRawBytes()} are valid; typically 8 times its length
final
rawBytes Int8List?
@return raw bytes encoded by the barcode, if applicable, otherwise {@code null}
final
resultMetadata Map<ResultMetadataType, Object>
@return {@link Map} mapping {@link ResultMetadataType} keys to values. This contains optional metadata about what was detected about the barcode, like orientation.
final
resultPoints List<ResultPoint>
@return points related to the barcode in the image. These are typically points identifying finder patterns or the corners of the barcode. The exact meaning is specific to the type of barcode that was decoded.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
@return raw text encoded by the barcode
final
time DateTime
final

Methods

addResultPoints(List<ResultPoint> newPoints) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putAllMetadata(Map<ResultMetadataType, Object> metadata) → void
putMetadata(ResultMetadataType type, Object value) → void
toString() String
A string representation of this object.
override

Operators

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