FaketoothCharacteristic constructor

const FaketoothCharacteristic({
  1. required String uuid,
  2. required Set<FaketoothCharacteristicProperties> properties,
  3. List<FaketoothDescriptor>? descriptors,
  4. Uint8List? initialValue,
  5. Future<Uint8List> valueProducer()?,
  6. void valueHandler(
    1. Uint8List?
    )?,
})

Creates a new instance of FaketoothCharacteristic.

The uuid and properties parameters are required, while the descriptors, initialValue, valueProducer, and valueHandler parameters are optional.

Implementation

const FaketoothCharacteristic({
  required this.uuid,
  required this.properties,
  this.descriptors,
  this.initialValue,
  this.valueProducer,
  this.valueHandler,
});