Barcode class

Represents a single recognized barcode and its value.

Constructors

Barcode.fromMap(Map data)
Create a Barcode from native data.

Properties

boundingBox Rect?
Gets the bounding rectangle of the detected barcode.
final
bytes Uint8List?
Returns raw bytes as it was encoded in the barcode.
final
calendarEvent CalendarEvent?
Gets parsed calendar event details.
final
contactInfo ContactInfo?
Gets parsed contact details.
final
corners List<Offset>?
Returns four corner points in clockwise direction starting with top-left.
final
displayValue String?
Returns barcode value in a user-friendly format. This method may omit some of the information encoded in the barcode. For example, if getRawValue() returns 'MEBKM:TITLE:Google;URL://www.google.com;;', the display value might be '//www.google.com'. This value may be multiline, for example, when line breaks are encoded into the original TEXT barcode value. May include the supplement value. Returns null if nothing found.
final
driverLicense DriverLicense?
Gets parsed driver license details.
final
email Email?
Gets parsed email details.
final
format BarcodeFormat?
Returns barcode format
final
geoPoint GeoPoint?
Gets parsed geo coordinates.
final
hashCode int
The hash code for this object.
no setterinherited
phone Phone?
Gets parsed phone number details.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sms SMS?
Gets parsed SMS details.
final
type BarcodeType?
Returns format type of the barcode value.
final
url UrlBookmark?
Gets parsed URL bookmark details.
final
value String?
Returns barcode value as it was encoded in the barcode. Structured values are not parsed, for example: 'MEBKM:TITLE:Google;URL://www.google.com;;'.
final
wifi WiFi?
Gets parsed WiFi AP details.
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