SerialControlSignals class

Snapshot of serial modem control and status lines.

rts and dtr are output control lines managed by the local device. cts, dsr, and dcd are input/status lines reported by the peer or adapter when the platform backend exposes them.

Constructors

SerialControlSignals({int mask = 0, bool rts = false, bool cts = false, bool dtr = false, bool dsr = false, bool dcd = false})
Creates a modem-control signal snapshot.
const
SerialControlSignals.fromMap(Map map)
Builds a signal snapshot from a platform map.
factory

Properties

cts bool
Clear To Send input state.
final
dcd bool
Data Carrier Detect input state.
final
dsr bool
Data Set Ready input state.
final
dtr bool
Data Terminal Ready output state.
final
hashCode int
The hash code for this object.
no setteroverride
mask int
Platform-specific raw bit mask, when available.
final
rts bool
Request To Send output state.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? mask, bool? rts, bool? cts, bool? dtr, bool? dsr, bool? dcd}) SerialControlSignals
Creates a copy with selected fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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