Device class

Represents a connected device capable of receiving test commands.

Inheritance

Constructors

Device({required Application app, required String appIdentifier, required TestDeviceInfo device, String? driverName, TestControllerState? testControllerState, Duration? timeout})

Properties

app Application
finalinherited
appIdentifier String
The unique identifier for the application.
final
device ↔ TestDeviceInfo
The test device information.
getter/setter pair
driverName String?
The name of the connected driver, if one exists.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lastPing DateTime
no setterinherited
logger → Logger
finalinherited
onCommandReceived Future<void> Function(DeviceCommand)
getter/setter pairinherited
online bool
no setterinherited
params Map<String, dynamic>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendTimeout Duration
finalinherited
testControllerState ↔ TestControllerState?
The current state of the device with regards to the testing framework, if known.
getter/setter pair
timeout Duration
finalinherited

Methods

attachSocket(WebSocket? socket) → void
inherited
close() → void
Closes the session with the device and releases it back to the available pool should it reconnect.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendCommand(DeviceCommand command) Future<void>
inherited
toConnectedDevice() → ConnectedDevice
Mapping utility that converts this model into a ConnectedDevice instance suitable for transmission across the socket.
toString() String
A string representation of this object.
override

Operators

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