FlutterZebraScalePlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • FlutterZebraScalePlatform
Implementers

Constructors

FlutterZebraScalePlatform()
Constructs a FlutterZebraScalePlatform.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

connect(int? scannerId) → Future<int?>
Connect to a scanner by ID, or to the first available USB device if scannerId is null/empty.
disableScale(int scannerId) → Future<bool>
Disable scale on a scanner
disconnect(int scannerId) → Future<bool>
Disconnect from a scanner by ID
enableBluetoothScannerDiscovery(bool enable) → Future<bool>
Enable/disable Bluetooth scanner discovery
enableScale(int scannerId) → Future<bool>
Enable scale on a scanner
enableScannersDetection(bool enable) → Future<bool>
Enable/disable scanner detection
getActiveScanners() → Future<Map<String, dynamic>>
Get list of active (connected) scanners
getAvailableScanners() → Future<Map<String, dynamic>>
Get list of available scanners
getEventStream() → Stream<Map<String, dynamic>>
Get stream of events from the native platform
getPlatformVersion() → Future<String?>
initialize() → Future<bool>
Initialize the Zebra Scanner SDK
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readWeight(int scannerId) → Future<Map<String, dynamic>?>
Read weight from scale
resetScale(int scannerId) → Future<bool>
Reset the scale
startLiveWeight(int scannerId) → Future<bool>
Start live weight reading (continuous updates)
stopLiveWeight() → Future<bool>
Stop live weight reading
toString() → String
A string representation of this object.
inherited
updateScannersList() → Future<Map<String, dynamic>>
Update/refresh scanners list
zeroScale(int scannerId) → Future<bool>
Zero the scale

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

instance ↔ FlutterZebraScalePlatform
The default instance of FlutterZebraScalePlatform to use.
getter/setter pair