Result class
Encapsulates the result of decoding a barcode within an image.
Constructors
-
Result(String _text, List<
int> ? _rawBytes, List<ResultPoint?> ? _resultPoints, BarcodeFormat _format, [int? timestamp]) -
Result.full(String _text, List<
int> ? _rawBytes, int _numBits, List<ResultPoint?> ? _resultPoints, BarcodeFormat _format, int _timestamp)
Properties
- barcodeFormat → BarcodeFormat
-
@return BarcodeFormat representing the format of the barcode that was decoded
no setter
- 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
@since 3.3.0
no setter
-
rawBytes
→ List<
int> ? -
@return raw bytes encoded by the barcode, if applicable, otherwise
null
no setter -
resultMetadata
→ Map<
ResultMetadataType, Object> ? -
@return Map mapping ResultMetadataType keys to values. May be
null
. This contains optional metadata about what was detected about the barcode, like orientation.no setter -
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.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
@return raw text encoded by the barcode
no setter
- timestamp → int
-
no setter
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