BarcodeScanResult class

Hold the result of a successful scan.

This data class contains toMap/fromMap methods that return a map that is safe to use in platform channels (or state restoration)

Annotations

Constructors

BarcodeScanResult({required String code, required BarcodeFormat? format, required ScannerType source})
const
BarcodeScanResult.fromMap(Map<String, dynamic> map)
factory

Properties

code String
The value of the barcode
final
format BarcodeFormat?
The format of the barcode if reported by the library
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source ScannerType
The origin source of the scan result
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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