Barcode class
A class to represent the contents of a barcode in an InputImage.
Constructors
-
Barcode({required BarcodeType type, required BarcodeFormat format, required String? displayValue, required String? rawValue, required Uint8List? rawBytes, required Rect? boundingBox, required List<
Point< ? cornerPoints, required BarcodeValue? value})int> > - Constructor to create an instance of Barcode.
- Barcode.fromJson(Map json)
-
Returns an instance of Barcode from a given
json
.factory
Properties
- boundingBox → Rect?
-
The rectangle that holds the discovered barcode relative to the detected image in the view coordinate system.
final
-
cornerPoints
→ List<
Point< ?int> > -
The four corner points of the barcode, in clockwise order starting with the top left relative to the detected image in the view coordinate system.
final
- displayValue → String?
-
A barcode value in a user-friendly format.
This value may be multiline, for example, when line breaks are encoded into the original TEXT barcode value.
May include the supplement value.
final
- format → BarcodeFormat
-
The format (symbology) of the barcode value.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rawBytes → Uint8List?
-
Barcode bytes as encoded in the barcode.
final
- rawValue → String?
-
A barcode value as it was encoded in the barcode.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → BarcodeType
-
The format type of the barcode value.
final
- value → BarcodeValue?
-
A barcode value depending on the BarcodeType type set.
final
Methods
-
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