NotSupportedError class

An Error that is throw if an operation is not supported.

You'll mostly find it thrown on the method in BluetoothCharacteristic. It is thrown whenever a method is not supported by the underlying characteristic. For example a characteristic may not support BluetoothCharacteristic.writeValueWithResponse if it's for reading only. In that case you'll get a NotSupportedError.

To avoid these errors firs read the BluetoothCharacteristic.properties value to see what it does and doesn't support.

See: WebBluetoothCharacteristicProperties

Inheritance

Constructors

NotSupportedError(String uuid)
Construct a new instance of the error.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace at the point where this error was first thrown.
no setterinherited
uuid String
The uuid of the BluetoothCharacteristic that the error occurred in.
final

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