status property

DeviceStatus get status

The runtime status of this device.

Implementation

DeviceStatus get status => _status;
set status (DeviceStatus newStatus)

Change the runtime status of this device.

Implementation

set status(DeviceStatus newStatus) {
  if (newStatus != _status) {
    debug('$runtimeType - Setting device status: ${newStatus.name}');
    _status = newStatus;
    _eventController.add(_status);
  }
}