Discovery class abstract
The root of all discovery classes. The main purpose is to detect the version of the received discovery_b64 message. The error property reflects if any of the decoded fields failed to decode properly.
- Implementers
Constructors
- Discovery.new(Uint8List byteArray)
- Discovery.fromDiscoveryB64(String discoveryB64)
-
This factory constructor is used to create a discovery class from a dicovery_b64 string.
factory
Properties
- byteArray → Uint8List
-
The source byte used for constructing this class
final
-
discoveryDataMap
→ Map<
String, dynamic> -
For backwards compatibility, this property provides the same data as the getDiscoveryDataMap function that can be found in the Java library provided by Zebra.
final
- discoveryVersion → ByteValue
-
The version of the discovery_b64 message.
3 = legacy
4= advanced
final
- error → bool
-
This property returns true when one or more values have an error.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
ValueBase> -
This property lists all values in this class and is used as the source for the error property.
no setter
- notUsed1 → NotUsedValue
-
These bytes are not used, or don't have any known function
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
initMap(
) → void - This function adds al relevant items to the discoveryDataMap
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Add a way to convert this class to Json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited