ScannerProperties class
Holds properties reported from the scanner that provides info for the UI.
This data class contains toMap/fromMap methods that return a map that is safe to use in platform channels (or state restoration)
- Annotations
Constructors
-
ScannerProperties({required bool hasUI, required Set<
BarcodeFormat> supportedFormats}) -
const
-
ScannerProperties.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasUI → bool
-
True if this scanner includes a UI component. If it does,
BarcodeScanner.buildUI MUST NOT return null. If it is false,
BarcodeScanner.buildUI will never be called
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedFormats
→ Set<
BarcodeFormat> -
The list of barcode formats supported by this scanner
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