DeviceController class Null safety

A DeviceController handles runtime managenent of all devices connected to this phone, including the phone itsel.

Implemented types

Constructors

DeviceController()
Get the singleton DeviceController.
factory

Properties

devices Map<String, DeviceManager>
The devices available in this DeviceRegistry mapped to their device type.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createDevice(String deviceType) Future<DeviceManager?>
Create and register a DeviceDataCollector based on a deviceType. Returns null if a device cannot be created.
override
devicesToString() String
getDevice(String deviceType) DeviceManager?
Returns the DeviceDataCollector of the given deviceType. Returns null if no device is found.
override
hasDevice(String deviceType) bool
Returns true if this factory contain a device manager of the given deviceType.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
registerAllAvailableDevices() → void
A convinient method for creating and registring all devices which are available in each SamplingPackage that has been registred in the SamplingPackageRegistry.
registerDevice(String deviceType, DeviceDataCollector manager) → void
Register and initialize a DeviceDataCollector for a deviceType.
override
supportsDevice(String type) bool
Returns true if this factory supports a device of the given deviceType. Note that even though a certain type of device is supported, its device DeviceDataCollector is not loaded until registerDevice is called.
override
toString() String
A string representation of this object. [...]
override
unregisterDevice(String deviceType) → void
override

Operators

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