NotFoundError class
An Error that is thrown if a BluetoothService or BluetoothCharacteristic could not be found on a Bluetooth device.
This could happen if the BluetoothService isn't defined when requesting the device using FlutterWebBluetooth.requestDevice.
See: RequestOptionsBuilder.
Constructors
- NotFoundError.forCharacteristic(String searchUUID, String? fromUUID)
- Creat an error for a BluetoothCharacteristic that could not be found.
- NotFoundError.forDescriptor(String? searchUUID, String? fromUUID)
- Create an error for a BluetoothDescriptor that could not be found.
- NotFoundError.forService(String? searchUUID, String? fromUUID)
- Create an error for a BluetoothService that could not be found.
Properties
- fromUUID → String?
-
The parent service for the error message.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchType → String
-
The type of what needed to be found; 'Service' or 'Characteristic'
final
- searchUUID → String
-
The uuid that could not be found.
final
- stackTrace → StackTrace?
-
The stack trace at the point where this error was first thrown.
no setterinherited
Methods
-
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.
inherited