QrScanResult class
Represents the result of a QR/Barcode scan operation
Constructors
-
QrScanResult({required String data, required BarcodeFormat format, required DateTime timestamp, List<
Point> ? cornerPoints, Map<String, dynamic> ? metadata}) -
const
-
QrScanResult.fromJson(Map<
String, dynamic> json) -
Creates a QrScanResult from a JSON map
factory
Properties
-
cornerPoints
→ List<
Point> ? -
The corner points of the detected barcode (if available)
final
- data → String
-
The raw data content of the scanned code
final
- format → BarcodeFormat
-
The format/type of the scanned code (QR_CODE, EAN_13, CODE_128, etc.)
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
metadata
→ Map<
String, dynamic> ? -
Additional metadata about the scan
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
The timestamp when the scan was performed
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the QrScanResult to a JSON map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override