writeValue method
Writes data to a specified characteristic.
value - The string value to be written.
writeType - Optional write type, defaulting to BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT.
Implementation
Future<void> writeValue({
required String value,
int? writeType,
}) async {
return CentralPlatformInterface.instance.writeCharacteristic(
characteristic: this,
value: value,
writeType: writeType,
);
}