SerialEventType enum
Event types emitted by FlSerial.events.
Values
- data → const SerialEventType
-
Raw bytes received from the device. SerialEvent.data is a
Uint8List.const SerialEventType(0) - connected → const SerialEventType
-
The port was successfully opened.
const SerialEventType(1) - disconnected → const SerialEventType
-
The port was closed, either by calling FlSerial.close or because the device was physically disconnected.
const SerialEventType(2) - lineStatusChanged → const SerialEventType
-
One or more modem control lines (CTS, DSR, RI, DCD) changed state. SerialEvent.data is a
Map<String, bool>with keys'CTS','DSR','RI','DCD'.const SerialEventType(3) - error → const SerialEventType
-
A transport-level error occurred. SerialEvent.data may contain a descriptive string.
const SerialEventType(4)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
Integer wire value used when the native layer sends event codes.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromInt(
int i) → SerialEventType? -
Returns the SerialEventType corresponding to
i, ornullifiis out of range.
Constants
-
values
→ const List<
SerialEventType> - A constant List of the values in this enum, in order of their declaration.