DeviceManager class Null safety

A DeviceManager handles a device on runtime.

Inheritance
Implementers

Constructors

DeviceManager([DeviceRegistration? deviceRegistration])

Properties

batteryLevel int?
The runtime battery level of this device.
read-only
deviceRegistration DeviceRegistration?
The registration for this device.
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Get a unique id for this device.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status DeviceStatus
The runtime status of this device.
read / write
statusEvents Stream<DeviceStatus>
The stream of status events for this device.
read-only
supportedDataTypes Set<String>
The set of data types defining which data can be collected on this device.
read-only, override
type String?
The type of this device
read-only, inherited

Methods

canConnect() bool
Determines whether a connection can be made at this point in time to the device.
inherited
connect() Future?
Ask this DeviceManager to connect to the device.
disconnect() Future?
Ask this DeviceManager to disconnect from the device.
initialize(String type) → void
Initialize the device data collector by specifying its type. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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