ConnectionChange class
Custom bridge model combining ScannerInfo and BarcodeManagerConnectionState into a single typed result for the BarcodeManager connection listener event.
This model is not part of the EMDK SDK; it is a convenience wrapper used to deliver both the scanner details and its new connection state together over the Flutter platform channel.
Constructors
- ConnectionChange({ScannerInfo? scannerInfo, BarcodeManagerConnectionState? connectionState})
-
const
-
ConnectionChange.fromMap(Map<
String, dynamic> map) -
Creates a ConnectionChange from a Map received via the platform channel.
factory
Properties
- connectionState → BarcodeManagerConnectionState?
-
The new connection state of the scanner.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scannerInfo → ScannerInfo?
-
Information about the scanner whose connection state changed.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this ConnectionChange to a Map suitable for sending over the platform channel.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited