MiScale class

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

cancelMeasurement(String deviceId) → void
Cancel any active measurement for the given device
discoverDevices({Duration duration = const Duration(seconds: 5)}) Stream<MiScaleDevice>
Starts a scan for compatible devices
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readScaleData() Stream<MiScaleData>
Listens for any incoming scale data
scanForDevices() Stream<DiscoveredDevice>
takeMeasurements() Stream<MiScaleMeasurement>
Listens for weight measurements
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance MiScale
Obtain the singleton MiScale instance
no setter