FaketoothCharacteristic class
A class that represents a Bluetooth Low Energy (BLE) characteristic in Faketooth.
This class defines the properties and behavior of a BLE characteristic, including its UUID, properties, descriptors, initial value, value producer, and value handler.
Constructors
-
FaketoothCharacteristic({required String uuid, required Set<
FaketoothCharacteristicProperties> properties, List<FaketoothDescriptor> ? descriptors, Uint8List? initialValue, Future<Uint8List> valueProducer()?, void valueHandler(Uint8List?)?}) -
Creates a new instance of FaketoothCharacteristic.
const
Properties
-
descriptors
→ List<
FaketoothDescriptor> ? -
The list of descriptors associated with the characteristic.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → Uint8List?
-
The initial value of the characteristic.
final
-
properties
→ Set<
FaketoothCharacteristicProperties> -
The set of properties associated with the characteristic.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uuid → String
-
The UUID of the characteristic.
final
- valueHandler → (void Function(Uint8List?)?)
-
A function that handles the value changes of the characteristic.
final
-
valueProducer
→ (Future<
Uint8List> Function()?) -
A function that produces the value of the characteristic.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toArguments(
) → Map< String, dynamic> - Converts the characteristic to a map of arguments.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited