Session class

Represents a connected session between a device driver and a device.

Constructors

Session({required Device device, required Driver driver, Logger? logger, required Future<void> onClose()})
Constructs the session with the device to be controlled, the driver performing the controlling actions, an optional logger that will be used for log events (instead of the unique class level loger if not set).

Properties

closed bool
no setter
device Device
final
driver Driver
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
onClose Future<void> Function()
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() → void
toString() String
A string representation of this object.
inherited

Operators

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