SerialPort class
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the Web Serial API
provides access to a
serial port on the host device.
EventTarget
SerialPort
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- SerialPort()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onconnect
↔ EventHandlerNonNull<
Event> ? -
Available on SerialPort, provided by the PropsSerialPort extension
getter/setter pair -
ondisconnect
↔ EventHandlerNonNull<
Event> ? -
Available on SerialPort, provided by the PropsSerialPort extension
getter/setter pair - readable → ReadableStream
-
Available on SerialPort, provided by the PropsSerialPort extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- writable → WritableStream
-
Available on SerialPort, provided by the PropsSerialPort extension
no setter
Methods
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
close(
) → Future< void> -
Available on SerialPort, provided by the PropsSerialPort extension
-
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
forget(
) → Future< void> -
Available on SerialPort, provided by the PropsSerialPort extension
-
getInfo(
) → SerialPortInfo -
Available on SerialPort, provided by the PropsSerialPort extension
-
getSignals(
) → Future< SerialInputSignals> -
Available on SerialPort, provided by the PropsSerialPort extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
SerialOptions options) → Future< void> -
Available on SerialPort, provided by the PropsSerialPort extension
-
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
setSignals(
[SerialOutputSignals? signals]) → Future< void> -
Available on SerialPort, provided by the PropsSerialPort extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited