CharacteristicWithValue class

Characteristic extended with value property.

This type is created to support chaining of operations on the characteristic when it was first read from Peripheral or Service.

Inheritance

Constructors

CharacteristicWithValue.fromJson(Map<String, dynamic> jsonObject, Service service, ManagerForCharacteristic manager)

Properties

hashCode int
The hash code for this object.
no setteroverride
isIndicatable bool
True if this characteristic can be monitored via indications.
getter/setter pairinherited
isNotifiable bool
True if this characteristic can be monitored via notifications.
getter/setter pairinherited
isReadable bool
True if this characteristic can be read.
getter/setter pairinherited
isWritableWithoutResponse bool
True if this characteristic can be written without resposne.
getter/setter pairinherited
isWritableWithResponse bool
True if this characteristic can be written with resposne.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service Service
The Service containing this characteristic.
finalinherited
uuid String
The UUID of this characteristic.
getter/setter pairinherited
value Uint8List
getter/setter pair

Methods

descriptors() Future<List<Descriptor>>
Returns a list of Descriptors of this characteristic.
inherited
monitor({String? transactionId}) Stream<Uint8List>
Returns a Stream of notifications/indications emitted by this characteristic.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read({String? transactionId}) Future<Uint8List>
Reads the value of this characteristic.
inherited
readDescriptor(String descriptorUuid, {String? transactionId}) Future<DescriptorWithValue>
Reads the value of a Descriptor identified by descriptorUuid.
inherited
toString() String
Returns a string representation of this characteristic in a format that contains all its properties and Service.
override
write(Uint8List value, bool withResponse, {String? transactionId}) Future<void>
Writes to the value of this characteristic.
inherited
writeDescriptor(String descriptorUuid, Uint8List value, {String? transactionId}) Future<Descriptor>
Writes the value of a Descriptor identified by descriptorUuid.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override