UnsupportedUsbSerialPlatform class final
A platform where USB serial is not available. Every call reports AccessStatus.unsupported or throws Unsupported.
- Inheritance
-
- Object
- UsbSerialPlatform
- UnsupportedUsbSerialPlatform
Constructors
Properties
-
events
→ Stream<
DeviceEvent> -
Attach and detach events.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- requiresUserSelection → bool
-
Whether the user must pick a port in a system chooser (request) before
it appears in list. True on the web.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkAccess(
[DeviceHandle? device]) → Future< AccessReport> -
Returns the current access state without showing any prompt.
override
-
list(
) → Future< List< DeviceHandle> > -
Serial ports currently attached (Android) or already granted (web).
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
DeviceHandle device, SerialConfig config) → Future< SerialConnection> -
Opens
devicewithconfig.override -
openSettings(
) → Future< bool> -
Opens this app's page in the system settings.
override
-
request(
List< DeviceFilter> filters) → Future<DeviceHandle?> -
Shows the system port chooser, if the platform has one.
override
-
requestAccess(
[DeviceHandle? device]) → Future< AccessReport> -
Requests access, which may show system dialogs.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited