DataWedgeEvent class

Represents a DataWedge event received from the service.

Events can be scan results, command results, or notifications. Use the type getters (isScan, isCommandResult, isNotification) to determine the event type and access the appropriate fields.

Constructors

DataWedgeEvent({required String type, required Map<String, dynamic> payload})
Creates a new DataWedgeEvent.
DataWedgeEvent.fromMap(Map<String, dynamic> rawEvent)
Creates a DataWedgeEvent from a raw event map.
factory

Properties

command String?
The command that was executed (for command result events).
no setter
commandIdentifier String?
The command identifier for correlating commands with results.
no setter
hashCode int
The hash code for this object.
no setterinherited
isCommandResult bool
Returns true if this is a command result event.
no setter
isNotification bool
Returns true if this is a notification event.
no setter
isScan bool
Returns true if this is a scan event.
no setter
labelType String?
The label type of the scanned barcode (for scan events).
no setter
notificationType String?
The notification type (for notification events).
no setter
payload Map<String, dynamic>
The raw payload of the event.
final
result String?
The result of the command (for command result events).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanData String?
The scanned data (for scan events).
no setter
scannerStatus String?
The scanner status (for scanner status notifications).
no setter
type String
The type of the event (scan, commandResult, notification, debug, unknown).
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